1
Fork 0

Add postfix match MatchSource to HIR

This commit is contained in:
Ross Smyth 2024-03-02 20:55:48 -05:00
parent d4ba888787
commit 567c98b30f
4 changed files with 10 additions and 3 deletions

View file

@ -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)