File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use crate::marker::Tuple;
8
8
#[ rustc_paren_sugar]
9
9
#[ fundamental]
10
10
#[ must_use = "async closures are lazy and do nothing unless called" ]
11
+ #[ cfg_attr( not( bootstrap) , lang = "async_fn" ) ]
11
12
pub trait AsyncFn < Args : Tuple > : AsyncFnMut < Args > {
12
13
/// Future returned by [`AsyncFn::async_call`].
13
14
#[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
@@ -27,6 +28,7 @@ pub trait AsyncFn<Args: Tuple>: AsyncFnMut<Args> {
27
28
#[ rustc_paren_sugar]
28
29
#[ fundamental]
29
30
#[ must_use = "async closures are lazy and do nothing unless called" ]
31
+ #[ cfg_attr( not( bootstrap) , lang = "async_fn_mut" ) ]
30
32
pub trait AsyncFnMut < Args : Tuple > : AsyncFnOnce < Args > {
31
33
/// Future returned by [`AsyncFnMut::async_call_mut`].
32
34
#[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
@@ -46,6 +48,7 @@ pub trait AsyncFnMut<Args: Tuple>: AsyncFnOnce<Args> {
46
48
#[ rustc_paren_sugar]
47
49
#[ fundamental]
48
50
#[ must_use = "async closures are lazy and do nothing unless called" ]
51
+ #[ cfg_attr( not( bootstrap) , lang = "async_fn_once" ) ]
49
52
pub trait AsyncFnOnce < Args : Tuple > {
50
53
/// Future returned by [`AsyncFnOnce::async_call_once`].
51
54
#[ unstable( feature = "async_fn_traits" , issue = "none" ) ]
You can’t perform that action at this time.
0 commit comments