summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-08-14 19:25:01 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-08-14 21:43:56 +0000
commit5021dde1a094884eb16aa5370e2f9e32d4e1fce4 (patch)
tree26913410d10aae9f83feeb57ece62845fd9098e2 /compiler/rustc_ast_lowering/src
parent55f8c66a601236b422e35f56f7e414a8280c78d4 (diff)
downloadrust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.tar.gz
rust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.zip
Move scrutinee `HirId` into `MatchSource::TryDesugar`
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs
index b23cee14f75..7408b4fb0af 100644
--- a/compiler/rustc_ast_lowering/src/expr.rs
+++ b/compiler/rustc_ast_lowering/src/expr.rs
@@ -1648,7 +1648,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
         hir::ExprKind::Match(
             scrutinee,
             arena_vec![self; break_arm, continue_arm],
-            hir::MatchSource::TryDesugar,
+            hir::MatchSource::TryDesugar(scrutinee.hir_id),
         )
     }