File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,10 @@ pub(crate) fn format_expr(
399399            } 
400400        } 
401401        ast:: ExprKind :: Underscore  => Some ( "_" . to_owned ( ) ) , 
402-         ast:: ExprKind :: IncludedBytes ( ..)  => unreachable ! ( ) , 
402+         ast:: ExprKind :: FormatArgs ( ..)  | ast:: ExprKind :: IncludedBytes ( ..)  => { 
403+             // These do not occur in the AST because macros aren't expanded. 
404+             unreachable ! ( ) 
405+         } 
403406        ast:: ExprKind :: Err  => None , 
404407    } ; 
405408
Original file line number Diff line number Diff line change @@ -462,6 +462,7 @@ pub(crate) fn first_line_ends_with(s: &str, c: char) -> bool {
462462pub ( crate )  fn  is_block_expr ( context :  & RewriteContext < ' _ > ,  expr :  & ast:: Expr ,  repr :  & str )  -> bool  { 
463463    match  expr. kind  { 
464464        ast:: ExprKind :: MacCall ( ..) 
465+         | ast:: ExprKind :: FormatArgs ( ..) 
465466        | ast:: ExprKind :: Call ( ..) 
466467        | ast:: ExprKind :: MethodCall ( ..) 
467468        | ast:: ExprKind :: Array ( ..) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments