Add async bound modifier to enable async Fn bounds
This commit is contained in:
parent
cdaa12e3df
commit
0eb2adb7e8
12 changed files with 199 additions and 59 deletions
|
@ -1154,6 +1154,8 @@ pub enum DesugaringKind {
|
|||
Await,
|
||||
ForLoop,
|
||||
WhileLoop,
|
||||
/// `async Fn()` bound modifier
|
||||
BoundModifier,
|
||||
}
|
||||
|
||||
impl DesugaringKind {
|
||||
|
@ -1169,6 +1171,7 @@ impl DesugaringKind {
|
|||
DesugaringKind::OpaqueTy => "`impl Trait`",
|
||||
DesugaringKind::ForLoop => "`for` loop",
|
||||
DesugaringKind::WhileLoop => "`while` loop",
|
||||
DesugaringKind::BoundModifier => "trait bound modifier",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -423,6 +423,7 @@ symbols! {
|
|||
async_fn_mut,
|
||||
async_fn_once,
|
||||
async_fn_track_caller,
|
||||
async_fn_traits,
|
||||
async_for_loop,
|
||||
async_iterator,
|
||||
async_iterator_poll_next,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue