Stabilize core::task::ready!
This commit is contained in:
parent
b2b7c859c1
commit
8c91805fd1
3 changed files with 2 additions and 7 deletions
|
@ -11,5 +11,5 @@ mod wake;
|
||||||
pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker};
|
pub use self::wake::{Context, RawWaker, RawWakerVTable, Waker};
|
||||||
|
|
||||||
mod ready;
|
mod ready;
|
||||||
#[unstable(feature = "ready_macro", issue = "70922")]
|
#[stable(feature = "ready_macro", since = "1.55.0")]
|
||||||
pub use ready::ready;
|
pub use ready::ready;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(ready_macro)]
|
|
||||||
///
|
|
||||||
/// use std::task::{ready, Context, Poll};
|
/// use std::task::{ready, Context, Poll};
|
||||||
/// use std::future::{self, Future};
|
/// use std::future::{self, Future};
|
||||||
/// use std::pin::Pin;
|
/// use std::pin::Pin;
|
||||||
|
@ -29,8 +27,6 @@
|
||||||
/// The `ready!` call expands to:
|
/// The `ready!` call expands to:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # #![feature(ready_macro)]
|
|
||||||
/// #
|
|
||||||
/// # use std::task::{Context, Poll};
|
/// # use std::task::{Context, Poll};
|
||||||
/// # use std::future::{self, Future};
|
/// # use std::future::{self, Future};
|
||||||
/// # use std::pin::Pin;
|
/// # use std::pin::Pin;
|
||||||
|
@ -49,7 +45,7 @@
|
||||||
/// # Poll::Ready(())
|
/// # Poll::Ready(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "ready_macro", issue = "70922")]
|
#[stable(feature = "ready_macro", since = "1.55.0")]
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
pub macro ready($e:expr) {
|
pub macro ready($e:expr) {
|
||||||
match $e {
|
match $e {
|
||||||
|
|
|
@ -304,7 +304,6 @@
|
||||||
#![feature(pin_static_ref)]
|
#![feature(pin_static_ref)]
|
||||||
#![feature(prelude_import)]
|
#![feature(prelude_import)]
|
||||||
#![feature(ptr_internals)]
|
#![feature(ptr_internals)]
|
||||||
#![feature(ready_macro)]
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(shrink_to)]
|
#![feature(shrink_to)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue