Add desugaring mark to while loop
This commit is contained in:
parent
f03eb6bef8
commit
67ea84d97a
7 changed files with 28 additions and 24 deletions
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue