diff options
| author | Ross Smyth <crs2017@gmail.com> | 2024-03-02 20:55:48 -0500 | 
|---|---|---|
| committer | Ross Smyth <crs2017@gmail.com> | 2024-03-06 00:51:48 -0500 | 
| commit | 567c98b30f75b8f18bef7dc62e48111aa683e236 (patch) | |
| tree | 365261bf98749bc3bec1487d915de95685d1d8fb /compiler/rustc_passes/src/check_const.rs | |
| parent | d4ba888787aa5062f5a8f804be3563881b516f2c (diff) | |
| download | rust-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.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 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) | 
