diff options
| author | bors <bors@rust-lang.org> | 2024-08-16 23:20:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-16 23:20:38 +0000 |
| commit | 67d09736ea4be93216e5e2c37c68a38d7bf99968 (patch) | |
| tree | 0438f694934360027c778af516064b3b8dae8396 | |
| parent | 506052d49d3903ea554e4ce760cc53610cff4ef5 (diff) | |
| parent | 0732f7d5e1ea2b735db98d53b628e512f8d5a372 (diff) | |
| download | rust-67d09736ea4be93216e5e2c37c68a38d7bf99968.tar.gz rust-67d09736ea4be93216e5e2c37c68a38d7bf99968.zip | |
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.
| -rw-r--r-- | library/core/src/future/ready.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/future/ready.rs b/library/core/src/future/ready.rs index a07b63fb62b..6f6da8ce51d 100644 --- a/library/core/src/future/ready.rs +++ b/library/core/src/future/ready.rs @@ -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 { |
