@@ -257,7 +257,7 @@ macro_rules! CloneTypeFoldableAndLiftImpls {
257
257
macro_rules! BraceStructLiftImpl {
258
258
( impl <$( $p: tt) ,* > Lift <$tcx: tt> for $s: path {
259
259
type Lifted = $lifted: ty;
260
- $( $field: ident) ,* $( , ) *
260
+ $( $field: ident) ,* $( , ) ?
261
261
} $( where $( $wc: tt) * ) * ) => {
262
262
impl <$( $p) ,* > $crate:: ty:: Lift <$tcx> for $s
263
263
$( where $( $wc) * ) *
@@ -327,7 +327,7 @@ macro_rules! EnumLiftImpl {
327
327
#[ macro_export]
328
328
macro_rules! BraceStructTypeFoldableImpl {
329
329
( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
330
- $( $field: ident) ,* $( , ) *
330
+ $( $field: ident) ,* $( , ) ?
331
331
} $( where $( $wc: tt) * ) * ) => {
332
332
impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
333
333
$( where $( $wc) * ) *
@@ -354,7 +354,7 @@ macro_rules! BraceStructTypeFoldableImpl {
354
354
#[ macro_export]
355
355
macro_rules! TupleStructTypeFoldableImpl {
356
356
( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
357
- $( $field: ident) ,* $( , ) *
357
+ $( $field: ident) ,* $( , ) ?
358
358
} $( where $( $wc: tt) * ) * ) => {
359
359
impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
360
360
$( where $( $wc) * ) *
@@ -426,7 +426,7 @@ macro_rules! EnumTypeFoldableImpl {
426
426
} ;
427
427
428
428
( @FoldVariants ( $this: expr, $folder: expr)
429
- input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) * } , $( $input: tt) * )
429
+ input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) ? } , $( $input: tt) * )
430
430
output( $( $output: tt) * ) ) => {
431
431
EnumTypeFoldableImpl !(
432
432
@FoldVariants ( $this, $folder)
@@ -480,7 +480,7 @@ macro_rules! EnumTypeFoldableImpl {
480
480
} ;
481
481
482
482
( @VisitVariants ( $this: expr, $visitor: expr)
483
- input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) * } , $( $input: tt) * )
483
+ input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) ? } , $( $input: tt) * )
484
484
output( $( $output: tt) * ) ) => {
485
485
EnumTypeFoldableImpl !(
486
486
@VisitVariants ( $this, $visitor)
0 commit comments