1
Fork 0

revert stabilization of core::task::ready!

This commit is contained in:
Ibraheem Ahmed 2021-10-07 15:47:59 -04:00
parent a57c18b5e1
commit 5f7e7d2e93
2 changed files with 5 additions and 2 deletions

View file

@ -11,7 +11,7 @@ mod wake;
pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker}; pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker};
mod ready; mod ready;
#[stable(feature = "ready_macro", since = "1.56.0")] #[unstable(feature = "ready_macro", issue = "70922")]
pub use ready::ready; pub use ready::ready;
#[unstable(feature = "poll_ready", issue = "none")] #[unstable(feature = "poll_ready", issue = "none")]
pub use ready::Ready; pub use ready::Ready;

View file

@ -13,6 +13,8 @@ use core::task::Poll;
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ready_macro)]
///
/// use std::task::{ready, Context, Poll}; /// use std::task::{ready, Context, Poll};
/// use std::future::{self, Future}; /// use std::future::{self, Future};
/// use std::pin::Pin; /// use std::pin::Pin;
@ -32,6 +34,7 @@ use core::task::Poll;
/// The `ready!` call expands to: /// The `ready!` call expands to:
/// ///
/// ``` /// ```
/// # #![feature(ready_macro)]
/// # use std::task::{Context, Poll}; /// # use std::task::{Context, Poll};
/// # use std::future::{self, Future}; /// # use std::future::{self, Future};
/// # use std::pin::Pin; /// # use std::pin::Pin;
@ -50,7 +53,7 @@ use core::task::Poll;
/// # Poll::Ready(()) /// # Poll::Ready(())
/// # } /// # }
/// ``` /// ```
#[stable(feature = "ready_macro", since = "1.56.0")] #[unstable(feature = "ready_macro", issue = "70922")]
#[rustc_macro_transparency = "semitransparent"] #[rustc_macro_transparency = "semitransparent"]
pub macro ready($e:expr) { pub macro ready($e:expr) {
match $e { match $e {