@@ -506,24 +506,28 @@ macro_rules! quick_error {
506
506
// This is to contrast FIND_* clauses which just find stuff they need and
507
507
// skip everything else completely
508
508
( ERROR_CHECK $imode: tt display( $self_: tt) -> ( $( $exprs: tt ) * ) $( $tail: tt ) * )
509
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
509
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
510
510
( ERROR_CHECK $imode: tt display( $pattern: expr) $( $tail: tt ) * )
511
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
511
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
512
512
( ERROR_CHECK $imode: tt display( $pattern: expr, $( $exprs: tt ) * ) $( $tail: tt ) * )
513
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
513
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
514
514
( ERROR_CHECK $imode: tt description( $expr: expr) $( $tail: tt ) * )
515
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
515
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
516
516
( ERROR_CHECK $imode: tt cause( $expr: expr) $( $tail: tt) * )
517
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
517
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
518
518
( ERROR_CHECK $imode: tt from( ) $( $tail: tt) * )
519
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
519
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
520
520
( ERROR_CHECK $imode: tt from( $ftyp: ty) $( $tail: tt) * )
521
- => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
521
+ => { quick_error!( ERROR_CHECK_COMMA $imode $( $tail) * ) ; } ;
522
522
( ERROR_CHECK TUPLE from( $fvar: ident: $ftyp: ty) -> ( $( $e: expr ) ,* ) $( $tail: tt ) * )
523
- => { quick_error!( ERROR_CHECK TUPLE $( $tail) * ) ; } ;
523
+ => { quick_error!( ERROR_CHECK_COMMA TUPLE $( $tail) * ) ; } ;
524
524
( ERROR_CHECK STRUCT from( $fvar: ident: $ftyp: ty) -> { $( $v: ident: $e: expr ) ,* } $( $tail: tt ) * )
525
- => { quick_error!( ERROR_CHECK STRUCT $( $tail) * ) ; } ;
525
+ => { quick_error!( ERROR_CHECK_COMMA STRUCT $( $tail) * ) ; } ;
526
526
( ERROR_CHECK $imode: tt ) => { } ;
527
+ ( ERROR_CHECK_COMMA $imode: tt , $( $tail: tt ) * )
528
+ => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
529
+ ( ERROR_CHECK_COMMA $imode: tt $( $tail: tt ) * )
530
+ => { quick_error!( ERROR_CHECK $imode $( $tail) * ) ; } ;
527
531
// Utility functions
528
532
( IDENT $ident: ident) => { $ident }
529
533
}
0 commit comments