mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
Auto merge of #116528 - daxpedda:stabilize-ready-into-inner, r=dtolnay
Stabilize `Ready::into_inner()` This PR stabilizes `Ready::into_inner()`. Tracking issue: #101196. Implementation PR: #101189. Closes #101196.
This commit is contained in:
commit
67d09736ea
@ -34,13 +34,12 @@ impl<T> Ready<T> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ready_into_inner)]
|
||||
/// use std::future;
|
||||
///
|
||||
/// let a = future::ready(1);
|
||||
/// assert_eq!(a.into_inner(), 1);
|
||||
/// ```
|
||||
#[unstable(feature = "ready_into_inner", issue = "101196")]
|
||||
#[stable(feature = "ready_into_inner", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub fn into_inner(self) -> T {
|
||||
|
Loading…
Reference in New Issue
Block a user