Lower let-else to HIR
This commit is contained in:
parent
120d46e255
commit
ae32e88909
2 changed files with 83 additions and 16 deletions
|
@ -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`",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue