chore: add and !Sync impls for LocalWaker as a stability guarantee.

This commit is contained in:
Tomás Vallotton
2023-12-15 10:30:43 -03:00
parent ad28f755d8
commit 3e373f5ee7

View File

@@ -787,3 +787,8 @@ impl fmt::Debug for LocalWaker {
.finish() .finish()
} }
} }
#[unstable(feature = "local_waker", issue = "118959")]
impl !Send for LocalWaker {}
#[unstable(feature = "local_waker", issue = "118959")]
impl !Sync for LocalWaker {}