@@ -26,11 +26,9 @@ use rustc_hir::intravisit::{walk_generics, Visitor as _};
2626use rustc_hir:: { GenericArg , GenericArgs , OpaqueTyOrigin } ;
2727use rustc_middle:: middle:: stability:: AllowUnstable ;
2828use rustc_middle:: ty:: subst:: { self , GenericArgKind , InternalSubsts , SubstsRef } ;
29- use rustc_middle:: ty:: DynKind ;
3029use rustc_middle:: ty:: GenericParamDefKind ;
31- use rustc_middle:: ty:: {
32- self , Const , DefIdTree , EarlyBinder , IsSuggestable , Ty , TyCtxt , TypeVisitable ,
33- } ;
30+ use rustc_middle:: ty:: { self , Const , DefIdTree , IsSuggestable , Ty , TyCtxt , TypeVisitable } ;
31+ use rustc_middle:: ty:: { DynKind , EarlyBinder } ;
3432use rustc_session:: lint:: builtin:: { AMBIGUOUS_ASSOCIATED_ITEMS , BARE_TRAIT_OBJECTS } ;
3533use rustc_span:: edition:: Edition ;
3634use rustc_span:: lev_distance:: find_best_match_for_name;
@@ -490,7 +488,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
490488 self . astconv
491489 . normalize_ty (
492490 self . span ,
493- EarlyBinder ( tcx. at ( self . span ) . type_of ( param. def_id ) )
491+ tcx. at ( self . span )
492+ . bound_type_of ( param. def_id )
494493 . subst ( tcx, substs) ,
495494 )
496495 . into ( )
@@ -1258,10 +1257,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
12581257 item_segment : & hir:: PathSegment < ' _ > ,
12591258 ) -> Ty < ' tcx > {
12601259 let substs = self . ast_path_substs_for_ty ( span, did, item_segment) ;
1261- self . normalize_ty (
1262- span,
1263- EarlyBinder ( self . tcx ( ) . at ( span) . type_of ( did) ) . subst ( self . tcx ( ) , substs) ,
1264- )
1260+ self . normalize_ty ( span, self . tcx ( ) . at ( span) . bound_type_of ( did) . subst ( self . tcx ( ) , substs) )
12651261 }
12661262
12671263 fn conv_object_ty_poly_trait_ref (
0 commit comments