@@ -228,7 +228,7 @@ macro_rules! handle_cycle_error {
228
228
$error. delay_as_bug( ) ;
229
229
Value :: from_cycle_error( $tcx)
230
230
} } ;
231
- ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) * ] [ $( $args: tt) * ] ) => {
231
+ ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) ? ] [ $( $args: tt) * ] ) => {
232
232
handle_cycle_error!( [ $( $( $modifiers) * ) * ] [ $( $args) * ] )
233
233
} ;
234
234
}
@@ -240,7 +240,7 @@ macro_rules! is_anon {
240
240
( [ anon $( $rest: tt) * ] ) => { {
241
241
true
242
242
} } ;
243
- ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) * ] ) => {
243
+ ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) ? ] ) => {
244
244
is_anon!( [ $( $( $modifiers) * ) * ] )
245
245
} ;
246
246
}
@@ -252,7 +252,7 @@ macro_rules! is_eval_always {
252
252
( [ eval_always $( $rest: tt) * ] ) => { {
253
253
true
254
254
} } ;
255
- ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) * ] ) => {
255
+ ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) ? ] ) => {
256
256
is_eval_always!( [ $( $( $modifiers) * ) * ] )
257
257
} ;
258
258
}
@@ -264,7 +264,7 @@ macro_rules! hash_result {
264
264
( [ no_hash $( $rest: tt) * ] [ $hcx: expr, $result: expr] ) => { {
265
265
None
266
266
} } ;
267
- ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) * ] [ $( $args: tt) * ] ) => {
267
+ ( [ $other: ident $( ( $( $other_args: tt) * ) ) * $( , $( $modifiers: tt) * ) ? ] [ $( $args: tt) * ] ) => {
268
268
hash_result!( [ $( $( $modifiers) * ) * ] [ $( $args) * ] )
269
269
} ;
270
270
}
0 commit comments