@@ -19,11 +19,10 @@ use crate::ty::subst::{GenericArg, GenericArgKind, InternalSubsts, Subst, Substs
1919use crate :: ty:: TyKind :: * ;
2020use crate :: ty:: {
2121 self , AdtDef , AdtDefData , AdtKind , Binder , BindingMode , BoundVar , CanonicalPolyFnSig ,
22- ClosureSizeProfileData , Const , ConstS , ConstVid , DefIdTree , EarlyBinder , ExistentialPredicate ,
23- FloatTy , FloatVar , FloatVid , GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid ,
24- List , ParamConst , ParamTy , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy ,
25- Region , RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut ,
26- UintTy ,
22+ ClosureSizeProfileData , Const , ConstS , ConstVid , DefIdTree , ExistentialPredicate , FloatTy ,
23+ FloatVar , FloatVid , GenericParamDefKind , InferConst , InferTy , IntTy , IntVar , IntVid , List ,
24+ ParamConst , ParamTy , PolyFnSig , Predicate , PredicateKind , PredicateS , ProjectionTy , Region ,
25+ RegionKind , ReprOptions , TraitObjectVisitor , Ty , TyKind , TyS , TyVar , TyVid , TypeAndMut , UintTy ,
2726} ;
2827use rustc_ast as ast;
2928use rustc_data_structures:: fingerprint:: Fingerprint ;
@@ -1605,7 +1604,7 @@ impl<'tcx> TyCtxt<'tcx> {
16051604 pub fn caller_location_ty ( self ) -> Ty < ' tcx > {
16061605 self . mk_imm_ref (
16071606 self . lifetimes . re_static ,
1608- EarlyBinder ( self . type_of ( self . require_lang_item ( LangItem :: PanicLocation , None ) ) )
1607+ self . bound_type_of ( self . require_lang_item ( LangItem :: PanicLocation , None ) )
16091608 . subst ( self , self . mk_substs ( [ self . lifetimes . re_static . into ( ) ] . iter ( ) ) ) ,
16101609 )
16111610 }
@@ -2334,7 +2333,7 @@ impl<'tcx> TyCtxt<'tcx> {
23342333 ty_param. into ( )
23352334 } else {
23362335 assert ! ( has_default) ;
2337- EarlyBinder ( self . type_of ( param. def_id ) ) . subst ( self , substs) . into ( )
2336+ self . bound_type_of ( param. def_id ) . subst ( self , substs) . into ( )
23382337 }
23392338 }
23402339 } ) ;
0 commit comments