Add postfix match MatchSource to HIR
This commit is contained in:
parent
d4ba888787
commit
567c98b30f
4 changed files with 10 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue