From 9444e2c1b42de2d499397dda635d69b06a2d4641 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts <2467194+yoshuawuyts@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:04:52 +0200 Subject: [PATCH] stabilize `core::task::ready!` --- core/src/task/mod.rs | 2 +- core/src/task/ready.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/core/src/task/mod.rs b/core/src/task/mod.rs index 71a67a279..c5f89b9a2 100644 --- a/core/src/task/mod.rs +++ b/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/core/src/task/ready.rs b/core/src/task/ready.rs index 174ca6754..b1daf545f 100644 --- a/core/src/task/ready.rs +++ b/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 {