@@ -1985,7 +1985,8 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
19851985 }
19861986}
19871987
1988- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
1988+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
1989+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
19891990impl < Args : Tuple , F : AsyncFnOnce < Args > + ?Sized , A : Allocator > AsyncFnOnce < Args > for Box < F , A > {
19901991 type Output = F :: Output ;
19911992 type CallOnceFuture = F :: CallOnceFuture ;
@@ -1995,7 +1996,8 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
19951996 }
19961997}
19971998
1998- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
1999+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
2000+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
19992001impl < Args : Tuple , F : AsyncFnMut < Args > + ?Sized , A : Allocator > AsyncFnMut < Args > for Box < F , A > {
20002002 type CallRefFuture < ' a >
20012003 = F :: CallRefFuture < ' a >
@@ -2007,7 +2009,8 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
20072009 }
20082010}
20092011
2010- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
2012+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
2013+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
20112014impl < Args : Tuple , F : AsyncFn < Args > + ?Sized , A : Allocator > AsyncFn < Args > for Box < F , A > {
20122015 extern "rust-call" fn async_call ( & self , args : Args ) -> Self :: CallRefFuture < ' _ > {
20132016 F :: async_call ( self , args)
0 commit comments