about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTomás Vallotton <tvallotton@uc.cl>2023-12-15 10:30:43 -0300
committerTomás Vallotton <tvallotton@uc.cl>2024-01-20 10:14:25 -0300
commit3e373f5ee7ab5cf6d9fe986f697fe27fe90c53ea (patch)
treed596b4229639ee44cb4fb0c0f4dfbc43fe54b06a
parentad28f755d82308b1e30f504d241b810f396233d8 (diff)
downloadrust-3e373f5ee7ab5cf6d9fe986f697fe27fe90c53ea.tar.gz
rust-3e373f5ee7ab5cf6d9fe986f697fe27fe90c53ea.zip
chore: add and !Sync impls for LocalWaker as a stability guarantee.
-rw-r--r--library/core/src/task/wake.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs
index 3fc97a199a6..40f0b0c5144 100644
--- a/library/core/src/task/wake.rs
+++ b/library/core/src/task/wake.rs
@@ -787,3 +787,8 @@ impl fmt::Debug for LocalWaker {
             .finish()
     }
 }
+
+#[unstable(feature = "local_waker", issue = "118959")]
+impl !Send for LocalWaker {}
+#[unstable(feature = "local_waker", issue = "118959")]
+impl !Sync for LocalWaker {}