@@ -12,7 +12,6 @@ use crate::ty::{
1212} ;
1313use rustc_hir:: def:: Namespace ;
1414use rustc_span:: source_map:: Spanned ;
15- use rustc_target:: abi:: TyAndLayout ;
1615use rustc_type_ir:: { ConstKind , DebugWithInfcx , InferCtxtLike , WithInfcx } ;
1716
1817use std:: fmt:: { self , Debug } ;
@@ -409,31 +408,18 @@ TrivialLiftImpls! {
409408 bool ,
410409 usize ,
411410 u64 ,
411+ :: rustc_hir:: def_id:: DefId ,
412412 :: rustc_hir:: Mutability ,
413+ :: rustc_hir:: Unsafety ,
414+ :: rustc_target:: spec:: abi:: Abi ,
415+ crate :: ty:: ClosureKind ,
413416 crate :: ty:: ParamConst ,
414417 crate :: ty:: ParamTy ,
415418 interpret:: Scalar ,
416419 interpret:: AllocId ,
417420 rustc_target:: abi:: Size ,
418421}
419422
420- // For some things about which the type library does not know, or does not
421- // provide any traversal implementations, we need to provide a traversal
422- // implementation (only for TyCtxt<'_> interners).
423- TrivialTypeTraversalImpls ! {
424- crate :: ty:: BoundConstness ,
425- }
426- // For some things about which the type library does not know, or does not
427- // provide any traversal implementations, we need to provide a traversal
428- // implementation and a lift implementation (the former only for TyCtxt<'_>
429- // interners).
430- TrivialTypeTraversalAndLiftImpls ! {
431- :: rustc_hir:: def_id:: DefId ,
432- :: rustc_hir:: Unsafety ,
433- :: rustc_target:: spec:: abi:: Abi ,
434- crate :: ty:: ClosureKind ,
435- }
436-
437423///////////////////////////////////////////////////////////////////////////
438424// Lift implementations
439425
@@ -807,9 +793,3 @@ impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::UnevaluatedConst<'tcx> {
807793 self . args . visit_with ( visitor)
808794 }
809795}
810-
811- impl < ' tcx > TypeVisitable < TyCtxt < ' tcx > > for TyAndLayout < ' tcx , Ty < ' tcx > > {
812- fn visit_with < V : TypeVisitor < TyCtxt < ' tcx > > > ( & self , visitor : & mut V ) -> ControlFlow < V :: BreakTy > {
813- visitor. visit_ty ( self . ty )
814- }
815- }
0 commit comments