Skip to content

Commit 3e373f5

Browse files
committed
chore: add and !Sync impls for LocalWaker as a stability guarantee.
1 parent ad28f75 commit 3e373f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/core/src/task/wake.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,3 +787,8 @@ impl fmt::Debug for LocalWaker {
787787
.finish()
788788
}
789789
}
790+
791+
#[unstable(feature = "local_waker", issue = "118959")]
792+
impl !Send for LocalWaker {}
793+
#[unstable(feature = "local_waker", issue = "118959")]
794+
impl !Sync for LocalWaker {}

0 commit comments

Comments
 (0)