File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -1454,6 +1454,20 @@ macro_rules! __init_internal {
14541454 ) ;
14551455 }
14561456 } ;
1457+ ( make_initializer:
1458+ @slot( $slot: ident) ,
1459+ @type_name( $t: path) ,
1460+ @munch_fields( _: { $( $code: tt) * } , $( $rest: tt) * ) ,
1461+ @acc( $( $acc: tt) * ) ,
1462+ ) => {
1463+ // code blocks are ignored for the initializer check
1464+ $crate:: __init_internal!( make_initializer:
1465+ @slot( $slot) ,
1466+ @type_name( $t) ,
1467+ @munch_fields( $( $rest) * ) ,
1468+ @acc( $( $acc) * ) ,
1469+ ) ;
1470+ } ;
14571471 ( make_initializer:
14581472 @slot( $slot: ident) ,
14591473 @type_name( $t: path) ,
@@ -1508,20 +1522,6 @@ macro_rules! __init_internal {
15081522 ) ;
15091523 }
15101524 } ;
1511- ( make_initializer:
1512- @slot( $slot: ident) ,
1513- @type_name( $t: path) ,
1514- @munch_fields( _: { $( $code: tt) * } , $( $rest: tt) * ) ,
1515- @acc( $( $acc: tt) * ) ,
1516- ) => {
1517- // code blocks are ignored for the initializer check
1518- $crate:: __init_internal!( make_initializer:
1519- @slot( $slot) ,
1520- @type_name( $t) ,
1521- @munch_fields( $( $rest) * ) ,
1522- @acc( $( $acc) * ) ,
1523- ) ;
1524- } ;
15251525 ( make_initializer:
15261526 @slot( $slot: ident) ,
15271527 @type_name( $t: path) ,
You can’t perform that action at this time.
0 commit comments