Skip to content

Commit 471fb62

Browse files
committed
Allow unstable From impl for [Raw]Waker.
1 parent 89fb34f commit 471fb62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/src/task.rs

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub trait Wake {
3333
}
3434
}
3535

36+
#[allow(rustc::ineffective_unstable_trait_impl)]
3637
#[unstable(feature = "wake_trait", issue = "69912")]
3738
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
3839
fn from(waker: Arc<W>) -> Waker {
@@ -42,6 +43,7 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
4243
}
4344
}
4445

46+
#[allow(rustc::ineffective_unstable_trait_impl)]
4547
#[unstable(feature = "wake_trait", issue = "69912")]
4648
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
4749
fn from(waker: Arc<W>) -> RawWaker {

0 commit comments

Comments
 (0)