Skip to content

Commit 7d75497

Browse files
authored
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 #70922 (comment). Thanks! Closes #70922 cc/ ``@rust-lang/libs-api``
2 parents 4815f94 + 454313f commit 7d75497

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

library/core/src/task/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod wake;
1111
pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker};
1212

1313
mod ready;
14-
#[unstable(feature = "ready_macro", issue = "70922")]
14+
#[stable(feature = "ready_macro", since = "1.64.0")]
1515
pub use ready::ready;
1616
#[unstable(feature = "poll_ready", issue = "89780")]
1717
pub use ready::Ready;

library/core/src/task/ready.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use core::task::Poll;
1313
/// # Examples
1414
///
1515
/// ```
16-
/// #![feature(ready_macro)]
17-
///
1816
/// use std::task::{ready, Context, Poll};
1917
/// use std::future::{self, Future};
2018
/// use std::pin::Pin;
@@ -34,7 +32,6 @@ use core::task::Poll;
3432
/// The `ready!` call expands to:
3533
///
3634
/// ```
37-
/// # #![feature(ready_macro)]
3835
/// # use std::task::{Context, Poll};
3936
/// # use std::future::{self, Future};
4037
/// # use std::pin::Pin;
@@ -53,7 +50,7 @@ use core::task::Poll;
5350
/// # Poll::Ready(())
5451
/// # }
5552
/// ```
56-
#[unstable(feature = "ready_macro", issue = "70922")]
53+
#[stable(feature = "ready_macro", since = "1.64.0")]
5754
#[rustc_macro_transparency = "semitransparent"]
5855
pub macro ready($e:expr) {
5956
match $e {

0 commit comments

Comments
 (0)