Skip to content

Commit 51cffbb

Browse files
time: mark Sleep as !Unpin in docs (#5916)
1 parent 8832e93 commit 51cffbb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

tokio-stream/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ signal = ["tokio/signal"]
3737

3838
[dependencies]
3939
futures-core = { version = "0.3.0" }
40-
pin-project-lite = "0.2.7"
40+
pin-project-lite = "0.2.11"
4141
tokio = { version = "1.15.0", path = "../tokio", features = ["sync"] }
4242
tokio-util = { version = "0.7.0", path = "../tokio-util", optional = true }
4343

tokio-util/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ futures-core = "0.3.0"
4040
futures-sink = "0.3.0"
4141
futures-io = { version = "0.3.0", optional = true }
4242
futures-util = { version = "0.3.0", optional = true }
43-
pin-project-lite = "0.2.7"
43+
pin-project-lite = "0.2.11"
4444
slab = { version = "0.4.4", optional = true } # Backs `DelayQueue`
4545
tracing = { version = "0.1.25", default-features = false, features = ["std"], optional = true }
4646

tokio/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ stats = []
9696
[dependencies]
9797
tokio-macros = { version = "~2.1.0", path = "../tokio-macros", optional = true }
9898

99-
pin-project-lite = "0.2.7"
99+
pin-project-lite = "0.2.11"
100100

101101
# Everything else is optional...
102102
bytes = { version = "1.0.0", optional = true }

tokio/src/time/sleep.rs

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ pin_project! {
220220
/// [`select!`]: ../macro.select.html
221221
/// [`tokio::pin!`]: ../macro.pin.html
222222
// Alias for old name in 0.2
223+
#[project(!Unpin)]
223224
#[cfg_attr(docsrs, doc(alias = "Delay"))]
224225
#[derive(Debug)]
225226
#[must_use = "futures do nothing unless you `.await` or poll them"]

0 commit comments

Comments
 (0)