@@ -1982,7 +1982,8 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
1982
1982
}
1983
1983
}
1984
1984
1985
- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
1985
+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
1986
+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
1986
1987
impl < Args : Tuple , F : AsyncFnOnce < Args > + ?Sized , A : Allocator > AsyncFnOnce < Args > for Box < F , A > {
1987
1988
type Output = F :: Output ;
1988
1989
type CallOnceFuture = F :: CallOnceFuture ;
@@ -1992,7 +1993,8 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
1992
1993
}
1993
1994
}
1994
1995
1995
- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
1996
+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
1997
+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
1996
1998
impl < Args : Tuple , F : AsyncFnMut < Args > + ?Sized , A : Allocator > AsyncFnMut < Args > for Box < F , A > {
1997
1999
type CallRefFuture < ' a >
1998
2000
= F :: CallRefFuture < ' a >
@@ -2004,7 +2006,8 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
2004
2006
}
2005
2007
}
2006
2008
2007
- #[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
2009
+ #[ cfg_attr( bootstrap, unstable( feature = "async_closure" , issue = "62290" ) ) ]
2010
+ #[ cfg_attr( not( bootstrap) , stable( feature = "async_closure" , since = "CURRENT_RUSTC_VERSION" ) ) ]
2008
2011
impl < Args : Tuple , F : AsyncFn < Args > + ?Sized , A : Allocator > AsyncFn < Args > for Box < F , A > {
2009
2012
extern "rust-call" fn async_call ( & self , args : Args ) -> Self :: CallRefFuture < ' _ > {
2010
2013
F :: async_call ( self , args)
0 commit comments