From 32f5724e8ac35e5a314313c6053ff46702223b27 Mon Sep 17 00:00:00 2001 From: Saoirse Shipwreckt Date: Mon, 23 Mar 2020 01:36:08 +0100 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Ashley Mannix --- src/liballoc/task.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/liballoc/task.rs b/src/liballoc/task.rs index 8cd21c10805..981095302c7 100644 --- a/src/liballoc/task.rs +++ b/src/liballoc/task.rs @@ -16,10 +16,10 @@ use crate::sync::Arc; /// used to wake up a task is stored in an [`Arc`]. Some executors (especially /// those for embedded systems) cannot use this API, which is why [`RawWaker`] /// exists as an alternative for those systems. -#[unstable(feature = "wake_trait", issue = "0")] +#[unstable(feature = "wake_trait", issue = "69912")] pub trait Wake { /// Wake this task. - #[unstable(feature = "wake_trait", issue = "0")] + #[unstable(feature = "wake_trait", issue = "69912")] fn wake(self: Arc); /// Wake this task without consuming the waker. @@ -27,13 +27,13 @@ pub trait Wake { /// If an executor supports a cheaper way to wake without consuming the /// waker, it should override this method. By default, it clones the /// [`Arc`] and calls `wake` on the clone. - #[unstable(feature = "wake_trait", issue = "0")] + #[unstable(feature = "wake_trait", issue = "69912")] fn wake_by_ref(self: &Arc) { self.clone().wake(); } } -#[unstable(feature = "wake_trait", issue = "0")] +#[unstable(feature = "wake_trait", issue = "69912")] impl From> for Waker { fn from(waker: Arc) -> Waker { // SAFETY: This is safe because raw_waker safely constructs @@ -42,7 +42,7 @@ impl From> for Waker { } } -#[unstable(feature = "wake_trait", issue = "0")] +#[unstable(feature = "wake_trait", issue = "69912")] impl From> for RawWaker { fn from(waker: Arc) -> RawWaker { raw_waker(waker)