@@ -257,7 +257,7 @@ macro_rules! CloneTypeFoldableAndLiftImpls {
257257macro_rules! BraceStructLiftImpl {
258258 ( impl <$( $p: tt) ,* > Lift <$tcx: tt> for $s: path {
259259 type Lifted = $lifted: ty;
260- $( $field: ident) ,* $( , ) *
260+ $( $field: ident) ,* $( , ) ?
261261 } $( where $( $wc: tt) * ) * ) => {
262262 impl <$( $p) ,* > $crate:: ty:: Lift <$tcx> for $s
263263 $( where $( $wc) * ) *
@@ -327,7 +327,7 @@ macro_rules! EnumLiftImpl {
327327#[ macro_export]
328328macro_rules! BraceStructTypeFoldableImpl {
329329 ( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
330- $( $field: ident) ,* $( , ) *
330+ $( $field: ident) ,* $( , ) ?
331331 } $( where $( $wc: tt) * ) * ) => {
332332 impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
333333 $( where $( $wc) * ) *
@@ -354,7 +354,7 @@ macro_rules! BraceStructTypeFoldableImpl {
354354#[ macro_export]
355355macro_rules! TupleStructTypeFoldableImpl {
356356 ( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
357- $( $field: ident) ,* $( , ) *
357+ $( $field: ident) ,* $( , ) ?
358358 } $( where $( $wc: tt) * ) * ) => {
359359 impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
360360 $( where $( $wc) * ) *
@@ -426,7 +426,7 @@ macro_rules! EnumTypeFoldableImpl {
426426 } ;
427427
428428 ( @FoldVariants ( $this: expr, $folder: expr)
429- input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) * } , $( $input: tt) * )
429+ input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) ? } , $( $input: tt) * )
430430 output( $( $output: tt) * ) ) => {
431431 EnumTypeFoldableImpl !(
432432 @FoldVariants ( $this, $folder)
@@ -480,7 +480,7 @@ macro_rules! EnumTypeFoldableImpl {
480480 } ;
481481
482482 ( @VisitVariants ( $this: expr, $visitor: expr)
483- input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) * } , $( $input: tt) * )
483+ input( ( $variant: path) { $( $variant_arg: ident) ,* $( , ) ? } , $( $input: tt) * )
484484 output( $( $output: tt) * ) ) => {
485485 EnumTypeFoldableImpl !(
486486 @VisitVariants ( $this, $visitor)
0 commit comments