File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ pub trait IntoFuture {
9
9
10
10
/// Which kind of future are we turning this into?
11
11
#[ unstable( feature = "into_future" , issue = "67644" ) ]
12
- type Future : Future < Output = Self :: Output > ;
12
+ type IntoFuture : Future < Output = Self :: Output > ;
13
13
14
14
/// Creates a future from a value.
15
15
#[ unstable( feature = "into_future" , issue = "67644" ) ]
16
16
#[ lang = "into_future" ]
17
- fn into_future ( self ) -> Self :: Future ;
17
+ fn into_future ( self ) -> Self :: IntoFuture ;
18
18
}
19
19
20
20
#[ unstable( feature = "into_future" , issue = "67644" ) ]
21
21
impl < F : Future > IntoFuture for F {
22
22
type Output = F :: Output ;
23
- type Future = F ;
23
+ type IntoFuture = F ;
24
24
25
- fn into_future ( self ) -> Self :: Future {
25
+ fn into_future ( self ) -> Self :: IntoFuture {
26
26
self
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ struct AwaitMe;
10
10
11
11
impl IntoFuture for AwaitMe {
12
12
type Output = i32 ;
13
- type Future = Pin < Box < dyn Future < Output = i32 > > > ;
13
+ type IntoFuture = Pin < Box < dyn Future < Output = i32 > > > ;
14
14
15
- fn into_future ( self ) -> Self :: Future {
15
+ fn into_future ( self ) -> Self :: IntoFuture {
16
16
Box :: pin ( me ( ) )
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments