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 https://github.com/rust-lang/rust/issues/70922#issuecomment-1186231855. Thanks! Closes #70922 cc/ ``@rust-lang/libs-api``
This commit is contained in:
commit
7d754976c4
2 changed files with 2 additions and 5 deletions
|
@ -11,7 +11,7 @@ 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.64.0")]
|
||||||
pub use ready::ready;
|
pub use ready::ready;
|
||||||
#[unstable(feature = "poll_ready", issue = "89780")]
|
#[unstable(feature = "poll_ready", issue = "89780")]
|
||||||
pub use ready::Ready;
|
pub use ready::Ready;
|
||||||
|
|
|
@ -13,8 +13,6 @@ use core::task::Poll;
|
||||||
/// # 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;
|
||||||
|
@ -34,7 +32,6 @@ use core::task::Poll;
|
||||||
/// 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;
|
||||||
|
@ -53,7 +50,7 @@ use core::task::Poll;
|
||||||
/// # Poll::Ready(())
|
/// # Poll::Ready(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "ready_macro", issue = "70922")]
|
#[stable(feature = "ready_macro", since = "1.64.0")]
|
||||||
#[rustc_macro_transparency = "semitransparent"]
|
#[rustc_macro_transparency = "semitransparent"]
|
||||||
pub macro ready($e:expr) {
|
pub macro ready($e:expr) {
|
||||||
match $e {
|
match $e {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue