diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-08-29 17:48:05 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-08-30 20:17:46 -0500 |
| commit | ae32e88909350c631a26b3a37a9f07dd9656dba8 (patch) | |
| tree | 5012a3ec0681ca03a9976970fcc791977f367cd3 /compiler/rustc_span/src | |
| parent | 120d46e25507bae6ba1a621205388f8b7be106a2 (diff) | |
| download | rust-ae32e88909350c631a26b3a37a9f07dd9656dba8.tar.gz rust-ae32e88909350c631a26b3a37a9f07dd9656dba8.zip | |
Lower let-else to HIR
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/hygiene.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index e44a2e96598..c22093c5a42 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -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`", } } } |
