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 {
12761276            ExprKind :: While ( ..)  => ExprPrecedence :: While , 
12771277            ExprKind :: ForLoop  {  .. }  => ExprPrecedence :: ForLoop , 
12781278            ExprKind :: Loop ( ..)  => ExprPrecedence :: Loop , 
1279-             ExprKind :: Match ( ..)  => ExprPrecedence :: Match , 
1279+             ExprKind :: Match ( _,  _,  MatchKind :: Prefix )  => ExprPrecedence :: Match , 
1280+             ExprKind :: Match ( _,  _,  MatchKind :: Postfix )  => ExprPrecedence :: PostfixMatch , 
12801281            ExprKind :: Closure ( ..)  => ExprPrecedence :: Closure , 
12811282            ExprKind :: Block ( ..)  => ExprPrecedence :: Block , 
12821283            ExprKind :: TryBlock ( ..)  => ExprPrecedence :: TryBlock , 
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ pub enum ExprPrecedence {
281281    ForLoop , 
282282    Loop , 
283283    Match , 
284+     PostfixMatch , 
284285    ConstBlock , 
285286    Block , 
286287    TryBlock , 
@@ -334,7 +335,8 @@ impl ExprPrecedence {
334335            | ExprPrecedence :: InlineAsm 
335336            | ExprPrecedence :: Mac 
336337            | ExprPrecedence :: FormatArgs 
337-             | ExprPrecedence :: OffsetOf  => PREC_POSTFIX , 
338+             | ExprPrecedence :: OffsetOf 
339+             | ExprPrecedence :: PostfixMatch  => PREC_POSTFIX , 
338340
339341            // Never need parens 
340342            ExprPrecedence :: Array 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments