diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-10 20:44:42 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-11 13:36:45 +0200 |
| commit | 471fb622aaa234c0a69d59ee24b76092244a1c6c (patch) | |
| tree | 304dd3cb785d0eedc1bb0bd0365b13f626335e16 | |
| parent | 89fb34fea79fd803c9ea8a333a18ccb32e0c991d (diff) | |
| download | rust-471fb622aaa234c0a69d59ee24b76092244a1c6c.tar.gz rust-471fb622aaa234c0a69d59ee24b76092244a1c6c.zip | |
Allow unstable From impl for [Raw]Waker.
| -rw-r--r-- | library/alloc/src/task.rs | 2 |
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 { |
