diff options
| author | Ibraheem Ahmed <ibrah1440@gmail.com> | 2021-10-07 15:47:59 -0400 |
|---|---|---|
| committer | Ibraheem Ahmed <ibrah1440@gmail.com> | 2021-10-07 18:44:48 -0400 |
| commit | 5f7e7d2e93afd9478856d3dc026c6923a0f21641 (patch) | |
| tree | 67c7ee4e73b2caf396bebb6ebc937eca63673456 | |
| parent | a57c18b5e182f32218ace2620163d86b9412182d (diff) | |
| download | rust-5f7e7d2e93afd9478856d3dc026c6923a0f21641.tar.gz rust-5f7e7d2e93afd9478856d3dc026c6923a0f21641.zip | |
revert stabilization of `core::task::ready!`
| -rw-r--r-- | library/core/src/task/mod.rs | 2 | ||||
| -rw-r--r-- | library/core/src/task/ready.rs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/library/core/src/task/mod.rs b/library/core/src/task/mod.rs index a872320aca6..b6128bb70c9 100644 --- a/library/core/src/task/mod.rs +++ b/library/core/src/task/mod.rs @@ -11,7 +11,7 @@ mod wake; pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker}; mod ready; -#[stable(feature = "ready_macro", since = "1.56.0")] +#[unstable(feature = "ready_macro", issue = "70922")] pub use ready::ready; #[unstable(feature = "poll_ready", issue = "none")] pub use ready::Ready; diff --git a/library/core/src/task/ready.rs b/library/core/src/task/ready.rs index 8b6e259134e..bb1b7ed6c6c 100644 --- a/library/core/src/task/ready.rs +++ b/library/core/src/task/ready.rs @@ -13,6 +13,8 @@ use core::task::Poll; /// # Examples /// /// ``` +/// #![feature(ready_macro)] +/// /// use std::task::{ready, Context, Poll}; /// use std::future::{self, Future}; /// use std::pin::Pin; @@ -32,6 +34,7 @@ use core::task::Poll; /// The `ready!` call expands to: /// /// ``` +/// # #![feature(ready_macro)] /// # use std::task::{Context, Poll}; /// # use std::future::{self, Future}; /// # use std::pin::Pin; @@ -50,7 +53,7 @@ use core::task::Poll; /// # Poll::Ready(()) /// # } /// ``` -#[stable(feature = "ready_macro", since = "1.56.0")] +#[unstable(feature = "ready_macro", issue = "70922")] #[rustc_macro_transparency = "semitransparent"] pub macro ready($e:expr) { match $e { |
