This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ pub trait IntoFuture {
99
1010 /// Which kind of future are we turning this into?
1111 #[ unstable( feature = "into_future" , issue = "67644" ) ]
12- type Future : Future < Output = Self :: Output > ;
12+ type IntoFuture : Future < Output = Self :: Output > ;
1313
1414 /// Creates a future from a value.
1515 #[ unstable( feature = "into_future" , issue = "67644" ) ]
1616 #[ lang = "into_future" ]
17- fn into_future ( self ) -> Self :: Future ;
17+ fn into_future ( self ) -> Self :: IntoFuture ;
1818}
1919
2020#[ unstable( feature = "into_future" , issue = "67644" ) ]
2121impl < F : Future > IntoFuture for F {
2222 type Output = F :: Output ;
23- type Future = F ;
23+ type IntoFuture = F ;
2424
25- fn into_future ( self ) -> Self :: Future {
25+ fn into_future ( self ) -> Self :: IntoFuture {
2626 self
2727 }
2828}
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ struct AwaitMe;
1010
1111impl IntoFuture for AwaitMe {
1212 type Output = i32 ;
13- type Future = Pin < Box < dyn Future < Output = i32 > > > ;
13+ type IntoFuture = Pin < Box < dyn Future < Output = i32 > > > ;
1414
15- fn into_future ( self ) -> Self :: Future {
15+ fn into_future ( self ) -> Self :: IntoFuture {
1616 Box :: pin ( me ( ) )
1717 }
1818}
You can’t perform that action at this time.
0 commit comments