@@ -13,7 +13,7 @@ use rustc_hir::def_id::{DefId, LOCAL_CRATE};
1313use rustc_middle:: bug;
1414use rustc_middle:: ty:: layout:: { HasTypingEnv , LayoutOf , TyAndLayout } ;
1515use rustc_middle:: ty:: {
16- self , AdtKind , CoroutineArgsExt , Instance , PolyExistentialTraitRef , Ty , TyCtxt , Visibility ,
16+ self , AdtKind , CoroutineArgsExt , ExistentialTraitRef , Instance , Ty , TyCtxt , Visibility ,
1717} ;
1818use rustc_session:: config:: { self , DebugInfo , Lto } ;
1919use rustc_span:: { DUMMY_SP , FileName , FileNameDisplayPreference , SourceFile , Symbol , hygiene} ;
@@ -1400,13 +1400,13 @@ pub(crate) fn build_global_var_di_node<'ll>(
14001400fn build_vtable_type_di_node < ' ll , ' tcx > (
14011401 cx : & CodegenCx < ' ll , ' tcx > ,
14021402 ty : Ty < ' tcx > ,
1403- poly_trait_ref : Option < ty:: PolyExistentialTraitRef < ' tcx > > ,
1403+ poly_trait_ref : Option < ty:: ExistentialTraitRef < ' tcx > > ,
14041404) -> & ' ll DIType {
14051405 let tcx = cx. tcx ;
14061406
14071407 let vtable_entries = if let Some ( poly_trait_ref) = poly_trait_ref {
14081408 let trait_ref = poly_trait_ref. with_self_ty ( tcx, ty) ;
1409- let trait_ref = tcx. erase_regions ( tcx . instantiate_bound_regions_with_erased ( trait_ref) ) ;
1409+ let trait_ref = tcx. erase_regions ( trait_ref) ;
14101410
14111411 tcx. vtable_entries ( trait_ref)
14121412 } else {
@@ -1491,7 +1491,7 @@ fn build_vtable_type_di_node<'ll, 'tcx>(
14911491pub ( crate ) fn apply_vcall_visibility_metadata < ' ll , ' tcx > (
14921492 cx : & CodegenCx < ' ll , ' tcx > ,
14931493 ty : Ty < ' tcx > ,
1494- trait_ref : Option < PolyExistentialTraitRef < ' tcx > > ,
1494+ trait_ref : Option < ExistentialTraitRef < ' tcx > > ,
14951495 vtable : & ' ll Value ,
14961496) {
14971497 // FIXME(flip1995): The virtual function elimination optimization only works with full LTO in
@@ -1510,7 +1510,7 @@ pub(crate) fn apply_vcall_visibility_metadata<'ll, 'tcx>(
15101510
15111511 let trait_ref_self = trait_ref. with_self_ty ( cx. tcx , ty) ;
15121512 let trait_ref_self = cx. tcx . erase_regions ( trait_ref_self) ;
1513- let trait_def_id = trait_ref_self. def_id ( ) ;
1513+ let trait_def_id = trait_ref_self. def_id ;
15141514 let trait_vis = cx. tcx . visibility ( trait_def_id) ;
15151515
15161516 let cgus = cx. sess ( ) . codegen_units ( ) . as_usize ( ) ;
@@ -1569,7 +1569,7 @@ pub(crate) fn apply_vcall_visibility_metadata<'ll, 'tcx>(
15691569pub ( crate ) fn create_vtable_di_node < ' ll , ' tcx > (
15701570 cx : & CodegenCx < ' ll , ' tcx > ,
15711571 ty : Ty < ' tcx > ,
1572- poly_trait_ref : Option < ty:: PolyExistentialTraitRef < ' tcx > > ,
1572+ poly_trait_ref : Option < ty:: ExistentialTraitRef < ' tcx > > ,
15731573 vtable : & ' ll Value ,
15741574) {
15751575 if cx. dbg_cx . is_none ( ) {
0 commit comments