1
Fork 0

Add desugaring mark to while loop

This commit is contained in:
Cameron Steffen 2021-08-19 16:57:15 -05:00
parent f03eb6bef8
commit 67ea84d97a
7 changed files with 28 additions and 24 deletions

View file

@ -1101,6 +1101,7 @@ pub enum DesugaringKind {
Await,
ForLoop(ForLoopLoc),
LetElse,
WhileLoop,
}
/// A location in the desugaring of a `for` loop
@ -1122,6 +1123,7 @@ impl DesugaringKind {
DesugaringKind::OpaqueTy => "`impl Trait`",
DesugaringKind::ForLoop(_) => "`for` loop",
DesugaringKind::LetElse => "`let...else`",
DesugaringKind::WhileLoop => "`while` loop",
}
}
}