@@ -13,7 +13,7 @@ use rustc_hir::def_id::{DefId, LOCAL_CRATE};
13
13
use rustc_middle:: bug;
14
14
use rustc_middle:: ty:: layout:: { HasTypingEnv , LayoutOf , TyAndLayout } ;
15
15
use rustc_middle:: ty:: {
16
- self , AdtKind , CoroutineArgsExt , Instance , PolyExistentialTraitRef , Ty , TyCtxt , Visibility ,
16
+ self , AdtKind , CoroutineArgsExt , ExistentialTraitRef , Instance , Ty , TyCtxt , Visibility ,
17
17
} ;
18
18
use rustc_session:: config:: { self , DebugInfo , Lto } ;
19
19
use rustc_span:: { DUMMY_SP , FileName , FileNameDisplayPreference , SourceFile , Symbol , hygiene} ;
@@ -1400,13 +1400,13 @@ pub(crate) fn build_global_var_di_node<'ll>(
1400
1400
fn build_vtable_type_di_node < ' ll , ' tcx > (
1401
1401
cx : & CodegenCx < ' ll , ' tcx > ,
1402
1402
ty : Ty < ' tcx > ,
1403
- poly_trait_ref : Option < ty:: PolyExistentialTraitRef < ' tcx > > ,
1403
+ poly_trait_ref : Option < ty:: ExistentialTraitRef < ' tcx > > ,
1404
1404
) -> & ' ll DIType {
1405
1405
let tcx = cx. tcx ;
1406
1406
1407
1407
let vtable_entries = if let Some ( poly_trait_ref) = poly_trait_ref {
1408
1408
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) ;
1410
1410
1411
1411
tcx. vtable_entries ( trait_ref)
1412
1412
} else {
@@ -1491,7 +1491,7 @@ fn build_vtable_type_di_node<'ll, 'tcx>(
1491
1491
pub ( crate ) fn apply_vcall_visibility_metadata < ' ll , ' tcx > (
1492
1492
cx : & CodegenCx < ' ll , ' tcx > ,
1493
1493
ty : Ty < ' tcx > ,
1494
- trait_ref : Option < PolyExistentialTraitRef < ' tcx > > ,
1494
+ trait_ref : Option < ExistentialTraitRef < ' tcx > > ,
1495
1495
vtable : & ' ll Value ,
1496
1496
) {
1497
1497
// 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>(
1510
1510
1511
1511
let trait_ref_self = trait_ref. with_self_ty ( cx. tcx , ty) ;
1512
1512
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 ;
1514
1514
let trait_vis = cx. tcx . visibility ( trait_def_id) ;
1515
1515
1516
1516
let cgus = cx. sess ( ) . codegen_units ( ) . as_usize ( ) ;
@@ -1569,7 +1569,7 @@ pub(crate) fn apply_vcall_visibility_metadata<'ll, 'tcx>(
1569
1569
pub ( crate ) fn create_vtable_di_node < ' ll , ' tcx > (
1570
1570
cx : & CodegenCx < ' ll , ' tcx > ,
1571
1571
ty : Ty < ' tcx > ,
1572
- poly_trait_ref : Option < ty:: PolyExistentialTraitRef < ' tcx > > ,
1572
+ poly_trait_ref : Option < ty:: ExistentialTraitRef < ' tcx > > ,
1573
1573
vtable : & ' ll Value ,
1574
1574
) {
1575
1575
if cx. dbg_cx . is_none ( ) {
0 commit comments