Lower let-else to HIR

This commit is contained in:
Cameron Steffen 2021-08-29 17:48:05 -05:00
parent 120d46e255
commit ae32e88909
2 changed files with 83 additions and 16 deletions

View file

@ -1097,6 +1097,7 @@ pub enum DesugaringKind {
Async,
Await,
ForLoop(ForLoopLoc),
LetElse,
}
/// A location in the desugaring of a `for` loop
@ -1117,6 +1118,7 @@ impl DesugaringKind {
DesugaringKind::TryBlock => "`try` block",
DesugaringKind::OpaqueTy => "`impl Trait`",
DesugaringKind::ForLoop(_) => "`for` loop",
DesugaringKind::LetElse => "`let...else`",
}
}
}