Skip to content

Commit 5f7e7d2

Browse files
committed
revert stabilization of core::task::ready!
1 parent a57c18b commit 5f7e7d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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-
#[stable(feature = "ready_macro", since = "1.56.0")]
14+
#[unstable(feature = "ready_macro", issue = "70922")]
1515
pub use ready::ready;
1616
#[unstable(feature = "poll_ready", issue = "none")]
1717
pub use ready::Ready;

library/core/src/task/ready.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ use core::task::Poll;
1313
/// # Examples
1414
///
1515
/// ```
16+
/// #![feature(ready_macro)]
17+
///
1618
/// use std::task::{ready, Context, Poll};
1719
/// use std::future::{self, Future};
1820
/// use std::pin::Pin;
@@ -32,6 +34,7 @@ use core::task::Poll;
3234
/// The `ready!` call expands to:
3335
///
3436
/// ```
37+
/// # #![feature(ready_macro)]
3538
/// # use std::task::{Context, Poll};
3639
/// # use std::future::{self, Future};
3740
/// # use std::pin::Pin;
@@ -50,7 +53,7 @@ use core::task::Poll;
5053
/// # Poll::Ready(())
5154
/// # }
5255
/// ```
53-
#[stable(feature = "ready_macro", since = "1.56.0")]
56+
#[unstable(feature = "ready_macro", issue = "70922")]
5457
#[rustc_macro_transparency = "semitransparent"]
5558
pub macro ready($e:expr) {
5659
match $e {

0 commit comments

Comments
 (0)