@@ -324,60 +324,6 @@ macro_rules! EnumLiftImpl {
324
324
} ;
325
325
}
326
326
327
- #[ macro_export]
328
- macro_rules! BraceStructTypeFoldableImpl {
329
- ( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
330
- $( $field: ident) ,* $( , ) ?
331
- } $( where $( $wc: tt) * ) * ) => {
332
- impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
333
- $( where $( $wc) * ) *
334
- {
335
- fn super_fold_with<V : $crate:: ty:: fold:: TypeFolder <$tcx>>(
336
- & self ,
337
- folder: & mut V ,
338
- ) -> Self {
339
- let $s { $( $field, ) * } = self ;
340
- $s { $( $field: $crate:: ty:: fold:: TypeFoldable :: fold_with( $field, folder) , ) * }
341
- }
342
-
343
- fn super_visit_with<V : $crate:: ty:: fold:: TypeVisitor <$tcx>>(
344
- & self ,
345
- visitor: & mut V ,
346
- ) -> bool {
347
- let $s { $( $field, ) * } = self ;
348
- false $( || $crate:: ty:: fold:: TypeFoldable :: visit_with( $field, visitor) ) *
349
- }
350
- }
351
- } ;
352
- }
353
-
354
- #[ macro_export]
355
- macro_rules! TupleStructTypeFoldableImpl {
356
- ( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
357
- $( $field: ident) ,* $( , ) ?
358
- } $( where $( $wc: tt) * ) * ) => {
359
- impl <$( $p) ,* > $crate:: ty:: fold:: TypeFoldable <$tcx> for $s
360
- $( where $( $wc) * ) *
361
- {
362
- fn super_fold_with<V : $crate:: ty:: fold:: TypeFolder <$tcx>>(
363
- & self ,
364
- folder: & mut V ,
365
- ) -> Self {
366
- let $s( $( $field, ) * ) = self ;
367
- $s( $( $crate:: ty:: fold:: TypeFoldable :: fold_with( $field, folder) , ) * )
368
- }
369
-
370
- fn super_visit_with<V : $crate:: ty:: fold:: TypeVisitor <$tcx>>(
371
- & self ,
372
- visitor: & mut V ,
373
- ) -> bool {
374
- let $s( $( $field, ) * ) = self ;
375
- false $( || $crate:: ty:: fold:: TypeFoldable :: visit_with( $field, visitor) ) *
376
- }
377
- }
378
- } ;
379
- }
380
-
381
327
#[ macro_export]
382
328
macro_rules! EnumTypeFoldableImpl {
383
329
( impl <$( $p: tt) ,* > TypeFoldable <$tcx: tt> for $s: path {
0 commit comments