@@ -1985,7 +1985,8 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
1985
1985
}
1986
1986
}
1987
1987
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" ) ) ]
1989
1990
impl < Args : Tuple , F : AsyncFnOnce < Args > + ?Sized , A : Allocator > AsyncFnOnce < Args > for Box < F , A > {
1990
1991
type Output = F :: Output ;
1991
1992
type CallOnceFuture = F :: CallOnceFuture ;
@@ -1995,7 +1996,8 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
1995
1996
}
1996
1997
}
1997
1998
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" ) ) ]
1999
2001
impl < Args : Tuple , F : AsyncFnMut < Args > + ?Sized , A : Allocator > AsyncFnMut < Args > for Box < F , A > {
2000
2002
type CallRefFuture < ' a >
2001
2003
= F :: CallRefFuture < ' a >
@@ -2007,7 +2009,8 @@ impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> f
2007
2009
}
2008
2010
}
2009
2011
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" ) ) ]
2011
2014
impl < Args : Tuple , F : AsyncFn < Args > + ?Sized , A : Allocator > AsyncFn < Args > for Box < F , A > {
2012
2015
extern "rust-call" fn async_call ( & self , args : Args ) -> Self :: CallRefFuture < ' _ > {
2013
2016
F :: async_call ( self , args)
0 commit comments