@@ -13,8 +13,6 @@ use crate::future::Future;
13
13
/// on all futures.
14
14
///
15
15
/// ```no_run
16
- /// #![feature(into_future)]
17
- ///
18
16
/// use std::future::IntoFuture;
19
17
///
20
18
/// # async fn foo() {
@@ -33,8 +31,6 @@ use crate::future::Future;
33
31
/// multiple times before being `.await`ed.
34
32
///
35
33
/// ```rust
36
- /// #![feature(into_future)]
37
- ///
38
34
/// use std::future::{ready, Ready, IntoFuture};
39
35
///
40
36
/// /// Eventually multiply two numbers
@@ -91,8 +87,6 @@ use crate::future::Future;
91
87
/// `IntoFuture::into_future` to obtain an instance of `Future`:
92
88
///
93
89
/// ```rust
94
- /// #![feature(into_future)]
95
- ///
96
90
/// use std::future::IntoFuture;
97
91
///
98
92
/// /// Convert the output of a future to a string.
@@ -104,14 +98,14 @@ use crate::future::Future;
104
98
/// format!("{:?}", fut.await)
105
99
/// }
106
100
/// ```
107
- #[ unstable ( feature = "into_future" , issue = "67644 " ) ]
101
+ #[ stable ( feature = "into_future" , since = "1.64.0 " ) ]
108
102
pub trait IntoFuture {
109
103
/// The output that the future will produce on completion.
110
- #[ unstable ( feature = "into_future" , issue = "67644 " ) ]
104
+ #[ stable ( feature = "into_future" , since = "1.64.0 " ) ]
111
105
type Output ;
112
106
113
107
/// Which kind of future are we turning this into?
114
- #[ unstable ( feature = "into_future" , issue = "67644 " ) ]
108
+ #[ stable ( feature = "into_future" , since = "1.64.0 " ) ]
115
109
type IntoFuture : Future < Output = Self :: Output > ;
116
110
117
111
/// Creates a future from a value.
@@ -121,8 +115,6 @@ pub trait IntoFuture {
121
115
/// Basic usage:
122
116
///
123
117
/// ```no_run
124
- /// #![feature(into_future)]
125
- ///
126
118
/// use std::future::IntoFuture;
127
119
///
128
120
/// # async fn foo() {
@@ -131,12 +123,12 @@ pub trait IntoFuture {
131
123
/// assert_eq!("meow", fut.await);
132
124
/// # }
133
125
/// ```
134
- #[ unstable ( feature = "into_future" , issue = "67644 " ) ]
126
+ #[ stable ( feature = "into_future" , since = "1.64.0 " ) ]
135
127
#[ lang = "into_future" ]
136
128
fn into_future ( self ) -> Self :: IntoFuture ;
137
129
}
138
130
139
- #[ unstable ( feature = "into_future" , issue = "67644 " ) ]
131
+ #[ stable ( feature = "into_future" , since = "1.64.0 " ) ]
140
132
impl < F : Future > IntoFuture for F {
141
133
type Output = F :: Output ;
142
134
type IntoFuture = F ;
0 commit comments