@@ -532,10 +532,6 @@ impl<'tcx> TypeFoldable<'tcx> for ty::TypeAndMut<'tcx> {
532
532
ty:: TypeAndMut { ty : self . ty . fold_with ( folder) , mutbl : self . mutbl }
533
533
}
534
534
535
- fn fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
536
- folder. fold_mt ( self )
537
- }
538
-
539
535
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , visitor : & mut V ) -> bool {
540
536
self . ty . visit_with ( visitor)
541
537
}
@@ -552,10 +548,6 @@ impl<'tcx> TypeFoldable<'tcx> for ty::FnSig<'tcx> {
552
548
}
553
549
}
554
550
555
- fn fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
556
- folder. fold_fn_sig ( self )
557
- }
558
-
559
551
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , visitor : & mut V ) -> bool {
560
552
self . inputs ( ) . iter ( ) . any ( |i| i. visit_with ( visitor) ) ||
561
553
self . output ( ) . visit_with ( visitor)
@@ -602,10 +594,6 @@ impl<'tcx> TypeFoldable<'tcx> for ty::ImplHeader<'tcx> {
602
594
}
603
595
}
604
596
605
- fn fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
606
- folder. fold_impl_header ( self )
607
- }
608
-
609
597
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , visitor : & mut V ) -> bool {
610
598
self . self_ty . visit_with ( visitor) ||
611
599
self . trait_ref . map ( |r| r. visit_with ( visitor) ) . unwrap_or ( false ) ||
@@ -653,10 +641,6 @@ impl<'tcx> TypeFoldable<'tcx> for ty::adjustment::AutoBorrow<'tcx> {
653
641
}
654
642
}
655
643
656
- fn fold_with < ' gcx : ' tcx , F : TypeFolder < ' gcx , ' tcx > > ( & self , folder : & mut F ) -> Self {
657
- folder. fold_autoref ( self )
658
- }
659
-
660
644
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , visitor : & mut V ) -> bool {
661
645
match * self {
662
646
ty:: adjustment:: AutoBorrow :: Ref ( r, _m) => r. visit_with ( visitor) ,
0 commit comments