diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-07-19 13:30:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-19 13:30:47 +0200 |
| commit | 7d754976c4644c783091107bf2d85136f3d89fdc (patch) | |
| tree | 99d9a639e040f5a0d99d9ea4c17073099638e376 | |
| parent | 4815f94c51d9c4a9c43fcc77da0c788056f9cf9e (diff) | |
| parent | 454313fe83dc27df2508cbd82e6f2a2221d7f8d3 (diff) | |
| download | rust-7d754976c4644c783091107bf2d85136f3d89fdc.tar.gz rust-7d754976c4644c783091107bf2d85136f3d89fdc.zip | |
Rollup merge of #99419 - yoshuawuyts:stabilize-task-ready, r=Mark-Simulacrum
Stabilize `core::task::ready!` This stabilizes `core::task::ready!` for Rust 1.64. The FCP for stabilization was just completed here https://github.com/rust-lang/rust/issues/70922#issuecomment-1186231855. Thanks! Closes #70922 cc/ ``@rust-lang/libs-api``
| -rw-r--r-- | library/core/src/task/mod.rs | 2 | ||||
| -rw-r--r-- | library/core/src/task/ready.rs | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/library/core/src/task/mod.rs b/library/core/src/task/mod.rs index 71a67a2793a..c5f89b9a2c6 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; -#[unstable(feature = "ready_macro", issue = "70922")] +#[stable(feature = "ready_macro", since = "1.64.0")] pub use ready::ready; #[unstable(feature = "poll_ready", issue = "89780")] pub use ready::Ready; diff --git a/library/core/src/task/ready.rs b/library/core/src/task/ready.rs index 174ca675460..b1daf545fbe 100644 --- a/library/core/src/task/ready.rs +++ b/library/core/src/task/ready.rs @@ -13,8 +13,6 @@ use core::task::Poll; /// # Examples /// /// ``` -/// #![feature(ready_macro)] -/// /// use std::task::{ready, Context, Poll}; /// use std::future::{self, Future}; /// use std::pin::Pin; @@ -34,7 +32,6 @@ 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; @@ -53,7 +50,7 @@ use core::task::Poll; /// # Poll::Ready(()) /// # } /// ``` -#[unstable(feature = "ready_macro", issue = "70922")] +#[stable(feature = "ready_macro", since = "1.64.0")] #[rustc_macro_transparency = "semitransparent"] pub macro ready($e:expr) { match $e { |
