Add async bound modifier to enable async Fn bounds

This commit is contained in:
Michael Goulet
2024-01-26 17:00:28 +00:00
parent cdaa12e3df
commit 0eb2adb7e8
12 changed files with 199 additions and 59 deletions

View File

@@ -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",
}
}
}