about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-09-10 20:44:42 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-09-11 13:36:45 +0200
commit471fb622aaa234c0a69d59ee24b76092244a1c6c (patch)
tree304dd3cb785d0eedc1bb0bd0365b13f626335e16
parent89fb34fea79fd803c9ea8a333a18ccb32e0c991d (diff)
downloadrust-471fb622aaa234c0a69d59ee24b76092244a1c6c.tar.gz
rust-471fb622aaa234c0a69d59ee24b76092244a1c6c.zip
Allow unstable From impl for [Raw]Waker.
-rw-r--r--library/alloc/src/task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/task.rs b/library/alloc/src/task.rs
index 5edc5796056..fcab3fd0bad 100644
--- a/library/alloc/src/task.rs
+++ b/library/alloc/src/task.rs
@@ -33,6 +33,7 @@ pub trait Wake {
     }
 }
 
+#[allow(rustc::ineffective_unstable_trait_impl)]
 #[unstable(feature = "wake_trait", issue = "69912")]
 impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
     fn from(waker: Arc<W>) -> Waker {
@@ -42,6 +43,7 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
     }
 }
 
+#[allow(rustc::ineffective_unstable_trait_impl)]
 #[unstable(feature = "wake_trait", issue = "69912")]
 impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
     fn from(waker: Arc<W>) -> RawWaker {