File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 227
227
#![ feature( fundamental) ]
228
228
#![ feature( generic_arg_infer) ]
229
229
#![ feature( if_let_guard) ]
230
- #![ feature( impl_trait_in_assoc_type) ]
231
230
#![ feature( inline_const) ]
232
231
#![ feature( intra_doc_pointers) ]
233
232
#![ feature( intrinsics) ]
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ mod impls {
70
70
where
71
71
<F as FnOnce < A > >:: Output : Future ,
72
72
{
73
- type CallFuture < ' a > = impl Future < Output = Self :: Output > where Self : ' a ;
73
+ type CallFuture < ' a > = < F as FnOnce < A > > :: Output where Self : ' a ;
74
74
75
75
extern "rust-call" fn async_call ( & self , args : A ) -> Self :: CallFuture < ' _ > {
76
- async { self . call ( args) . await }
76
+ self . call ( args)
77
77
}
78
78
}
79
79
@@ -82,10 +82,10 @@ mod impls {
82
82
where
83
83
<F as FnOnce < A > >:: Output : Future ,
84
84
{
85
- type CallMutFuture < ' a > = impl Future < Output = Self :: Output > where Self : ' a ;
85
+ type CallMutFuture < ' a > = < F as FnOnce < A > > :: Output where Self : ' a ;
86
86
87
87
extern "rust-call" fn async_call_mut ( & mut self , args : A ) -> Self :: CallMutFuture < ' _ > {
88
- async { self . call_mut ( args) . await }
88
+ self . call_mut ( args)
89
89
}
90
90
}
91
91
@@ -94,12 +94,12 @@ mod impls {
94
94
where
95
95
<F as FnOnce < A > >:: Output : Future ,
96
96
{
97
- type CallOnceFuture = impl Future < Output = Self :: Output > ;
97
+ type CallOnceFuture = < F as FnOnce < A > > :: Output ;
98
98
99
99
type Output = <<F as FnOnce < A > >:: Output as Future >:: Output ;
100
100
101
101
extern "rust-call" fn async_call_once ( self , args : A ) -> Self :: CallOnceFuture {
102
- async { self . call_once ( args) . await }
102
+ self . call_once ( args)
103
103
}
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments