about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/check_const.rs
diff options
context:
space:
mode:
authorRoss Smyth <crs2017@gmail.com>2024-03-02 20:55:48 -0500
committerRoss Smyth <crs2017@gmail.com>2024-03-06 00:51:48 -0500
commit567c98b30f75b8f18bef7dc62e48111aa683e236 (patch)
tree365261bf98749bc3bec1487d915de95685d1d8fb /compiler/rustc_passes/src/check_const.rs
parentd4ba888787aa5062f5a8f804be3563881b516f2c (diff)
downloadrust-567c98b30f75b8f18bef7dc62e48111aa683e236.tar.gz
rust-567c98b30f75b8f18bef7dc62e48111aa683e236.zip
Add postfix match MatchSource to HIR
Diffstat (limited to 'compiler/rustc_passes/src/check_const.rs')
-rw-r--r--compiler/rustc_passes/src/check_const.rs2
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 02792491f5e..de123a16859 100644
--- a/compiler/rustc_passes/src/check_const.rs
+++ b/compiler/rustc_passes/src/check_const.rs
@@ -48,7 +48,7 @@ impl NonConstExpr {
             Self::Match(TryDesugar(_)) => &[sym::const_try],
 
             // All other expressions are allowed.
-            Self::Loop(Loop | While) | Self::Match(Normal | FormatArgs) => &[],
+            Self::Loop(Loop | While) | Self::Match(Normal | Postfix | FormatArgs) => &[],
         };
 
         Some(gates)