Move scrutinee HirId
into MatchSource::TryDesugar
This commit is contained in:
parent
55f8c66a60
commit
5021dde1a0
29 changed files with 41 additions and 49 deletions
|
@ -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) => &[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue