mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Allow unstable From impl for [Raw]Waker.
This commit is contained in:
parent
89fb34fea7
commit
471fb622aa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user