Skip to content

Commit

Permalink
Auto merge of #116528 - daxpedda:stabilize-ready-into-inner, r=dtolnay
Browse files Browse the repository at this point in the history
Stabilize `Ready::into_inner()`

This PR stabilizes `Ready::into_inner()`.

Tracking issue: #101196.
Implementation PR: #101189.

Closes #101196.
  • Loading branch information
bors committed Aug 16, 2024
2 parents 506052d + 0732f7d commit 67d0973
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/src/future/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 67d0973

Please sign in to comment.