]> git.lizzy.rs Git - rust.git/commitdiff
Allow unstable From impl for [Raw]Waker.
authorMara Bos <m-ou.se@m-ou.se>
Thu, 10 Sep 2020 18:44:42 +0000 (20:44 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Fri, 11 Sep 2020 11:36:45 +0000 (13:36 +0200)
library/alloc/src/task.rs

index 5edc5796056692deb69dfb8a21d7f59770b51e4f..fcab3fd0badce93e2e177c76cb859c61bb200c20 100644 (file)
@@ -33,6 +33,7 @@ fn wake_by_ref(self: &Arc<Self>) {
     }
 }
 
+#[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 @@ fn from(waker: Arc<W>) -> 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 {