]> git.lizzy.rs Git - rust.git/commitdiff
revert stabilization of `core::task::ready!`
authorIbraheem Ahmed <ibrah1440@gmail.com>
Thu, 7 Oct 2021 19:47:59 +0000 (15:47 -0400)
committerIbraheem Ahmed <ibrah1440@gmail.com>
Thu, 7 Oct 2021 22:44:48 +0000 (18:44 -0400)
library/core/src/task/mod.rs
library/core/src/task/ready.rs

index a872320aca65a38c7a519704c2f877e3300382ef..b6128bb70c93c17af848e3499a76eca2df09b93d 100644 (file)
@@ -11,7 +11,7 @@
 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;
index 8b6e259134e7c79ee2ee99a242f535c19ed0fb19..bb1b7ed6c6c056503f34b8f5a86bec628d777a20 100644 (file)
@@ -13,6 +13,8 @@
 /// # Examples
 ///
 /// ```
+/// #![feature(ready_macro)]
+///
 /// use std::task::{ready, Context, Poll};
 /// use std::future::{self, Future};
 /// use std::pin::Pin;
@@ -32,6 +34,7 @@
 /// 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 @@
 ///     # 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 {