diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-08-14 19:25:01 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-08-14 21:43:56 +0000 |
| commit | 5021dde1a094884eb16aa5370e2f9e32d4e1fce4 (patch) | |
| tree | 26913410d10aae9f83feeb57ece62845fd9098e2 /compiler/rustc_middle/src/thir | |
| parent | 55f8c66a601236b422e35f56f7e414a8280c78d4 (diff) | |
| download | rust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.tar.gz rust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.zip | |
Move scrutinee `HirId` into `MatchSource::TryDesugar`
Diffstat (limited to 'compiler/rustc_middle/src/thir')
| -rw-r--r-- | compiler/rustc_middle/src/thir/visit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/thir/visit.rs b/compiler/rustc_middle/src/thir/visit.rs index 55ec17423ec..681400dbb94 100644 --- a/compiler/rustc_middle/src/thir/visit.rs +++ b/compiler/rustc_middle/src/thir/visit.rs @@ -70,7 +70,7 @@ pub fn walk_expr<'a, 'tcx: 'a, V: Visitor<'a, 'tcx>>(visitor: &mut V, expr: &Exp visitor.visit_expr(&visitor.thir()[expr]); } Loop { body } => visitor.visit_expr(&visitor.thir()[body]), - Match { scrutinee, ref arms } => { + Match { scrutinee, ref arms, .. } => { visitor.visit_expr(&visitor.thir()[scrutinee]); for &arm in &**arms { visitor.visit_arm(&visitor.thir()[arm]); |
