@@ -19,11 +19,10 @@ use crate::ty::subst::{GenericArg, GenericArgKind, InternalSubsts, Subst, Substs
19
19
use crate :: ty:: TyKind :: * ;
20
20
use crate :: ty:: {
21
21
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 ,
27
26
} ;
28
27
use rustc_ast as ast;
29
28
use rustc_data_structures:: fingerprint:: Fingerprint ;
@@ -1605,7 +1604,7 @@ impl<'tcx> TyCtxt<'tcx> {
1605
1604
pub fn caller_location_ty ( self ) -> Ty < ' tcx > {
1606
1605
self . mk_imm_ref (
1607
1606
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 ) )
1609
1608
. subst ( self , self . mk_substs ( [ self . lifetimes . re_static . into ( ) ] . iter ( ) ) ) ,
1610
1609
)
1611
1610
}
@@ -2334,7 +2333,7 @@ impl<'tcx> TyCtxt<'tcx> {
2334
2333
ty_param. into ( )
2335
2334
} else {
2336
2335
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 ( )
2338
2337
}
2339
2338
}
2340
2339
} ) ;
0 commit comments