@@ -12,7 +12,6 @@ use crate::ty::{
12
12
} ;
13
13
use rustc_hir:: def:: Namespace ;
14
14
use rustc_span:: source_map:: Spanned ;
15
- use rustc_target:: abi:: TyAndLayout ;
16
15
use rustc_type_ir:: { ConstKind , DebugWithInfcx , InferCtxtLike , WithInfcx } ;
17
16
18
17
use std:: fmt:: { self , Debug } ;
@@ -409,31 +408,18 @@ TrivialLiftImpls! {
409
408
bool ,
410
409
usize ,
411
410
u64 ,
411
+ :: rustc_hir:: def_id:: DefId ,
412
412
:: rustc_hir:: Mutability ,
413
+ :: rustc_hir:: Unsafety ,
414
+ :: rustc_target:: spec:: abi:: Abi ,
415
+ crate :: ty:: ClosureKind ,
413
416
crate :: ty:: ParamConst ,
414
417
crate :: ty:: ParamTy ,
415
418
interpret:: Scalar ,
416
419
interpret:: AllocId ,
417
420
rustc_target:: abi:: Size ,
418
421
}
419
422
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
-
437
423
///////////////////////////////////////////////////////////////////////////
438
424
// Lift implementations
439
425
@@ -807,9 +793,3 @@ impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::UnevaluatedConst<'tcx> {
807
793
self . args . visit_with ( visitor)
808
794
}
809
795
}
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