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_passes/src/check_const.rs | |
| parent | 55f8c66a601236b422e35f56f7e414a8280c78d4 (diff) | |
| download | rust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.tar.gz rust-5021dde1a094884eb16aa5370e2f9e32d4e1fce4.zip | |
Move scrutinee `HirId` into `MatchSource::TryDesugar`
Diffstat (limited to 'compiler/rustc_passes/src/check_const.rs')
| -rw-r--r-- | compiler/rustc_passes/src/check_const.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs index e70817d7b7c..a39f7e7ffcc 100644 --- a/compiler/rustc_passes/src/check_const.rs +++ b/compiler/rustc_passes/src/check_const.rs @@ -45,7 +45,7 @@ impl NonConstExpr { Self::Loop(ForLoop) | Self::Match(ForLoopDesugar) => &[sym::const_for], - Self::Match(TryDesugar) => &[sym::const_try], + Self::Match(TryDesugar(_)) => &[sym::const_try], // All other expressions are allowed. Self::Loop(Loop | While) | Self::Match(Normal | FormatArgs) => &[], |
