From 5021dde1a094884eb16aa5370e2f9e32d4e1fce4 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Mon, 14 Aug 2023 19:25:01 +0000 Subject: Move scrutinee `HirId` into `MatchSource::TryDesugar` --- compiler/rustc_passes/src/check_const.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_passes/src') 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) => &[], -- cgit 1.4.1-3-g733a5