Skip to content

Commit 4a9b892

Browse files
ibraheemdevcuviper
authored andcommitted
revert stabilization of core::task::ready!
(cherry picked from commit 5f7e7d2)
1 parent e2f363c commit 4a9b892

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,5 +11,5 @@ 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;

library/core/src/task/ready.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/// # Examples
99
///
1010
/// ```
11+
/// #![feature(ready_macro)]
12+
///
1113
/// use std::task::{ready, Context, Poll};
1214
/// use std::future::{self, Future};
1315
/// use std::pin::Pin;
@@ -27,6 +29,7 @@
2729
/// The `ready!` call expands to:
2830
///
2931
/// ```
32+
/// # #![feature(ready_macro)]
3033
/// # use std::task::{Context, Poll};
3134
/// # use std::future::{self, Future};
3235
/// # use std::pin::Pin;
@@ -45,7 +48,7 @@
4548
/// # Poll::Ready(())
4649
/// # }
4750
/// ```
48-
#[stable(feature = "ready_macro", since = "1.56.0")]
51+
#[unstable(feature = "ready_macro", issue = "70922")]
4952
#[rustc_macro_transparency = "semitransparent"]
5053
pub macro ready($e:expr) {
5154
match $e {

0 commit comments

Comments
 (0)