File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1276,7 +1276,8 @@ impl Expr {
1276
1276
ExprKind :: While ( ..) => ExprPrecedence :: While ,
1277
1277
ExprKind :: ForLoop { .. } => ExprPrecedence :: ForLoop ,
1278
1278
ExprKind :: Loop ( ..) => ExprPrecedence :: Loop ,
1279
- ExprKind :: Match ( ..) => ExprPrecedence :: Match ,
1279
+ ExprKind :: Match ( _, _, MatchKind :: Prefix ) => ExprPrecedence :: Match ,
1280
+ ExprKind :: Match ( _, _, MatchKind :: Postfix ) => ExprPrecedence :: PostfixMatch ,
1280
1281
ExprKind :: Closure ( ..) => ExprPrecedence :: Closure ,
1281
1282
ExprKind :: Block ( ..) => ExprPrecedence :: Block ,
1282
1283
ExprKind :: TryBlock ( ..) => ExprPrecedence :: TryBlock ,
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ pub enum ExprPrecedence {
281
281
ForLoop ,
282
282
Loop ,
283
283
Match ,
284
+ PostfixMatch ,
284
285
ConstBlock ,
285
286
Block ,
286
287
TryBlock ,
@@ -334,7 +335,8 @@ impl ExprPrecedence {
334
335
| ExprPrecedence :: InlineAsm
335
336
| ExprPrecedence :: Mac
336
337
| ExprPrecedence :: FormatArgs
337
- | ExprPrecedence :: OffsetOf => PREC_POSTFIX ,
338
+ | ExprPrecedence :: OffsetOf
339
+ | ExprPrecedence :: PostfixMatch => PREC_POSTFIX ,
338
340
339
341
// Never need parens
340
342
ExprPrecedence :: Array
You can’t perform that action at this time.
0 commit comments