Erase late-bound regions before computing vtable debuginfo name.
This commit is contained in:
parent
cd8b56f528
commit
bf39d86e0f
2 changed files with 14 additions and 7 deletions
|
@ -480,14 +480,11 @@ pub fn compute_debuginfo_vtable_name<'tcx>(
|
|||
}
|
||||
|
||||
if let Some(trait_ref) = trait_ref {
|
||||
push_item_name(tcx, trait_ref.skip_binder().def_id, true, &mut vtable_name);
|
||||
let trait_ref =
|
||||
tcx.normalize_erasing_late_bound_regions(ty::ParamEnv::reveal_all(), trait_ref);
|
||||
push_item_name(tcx, trait_ref.def_id, true, &mut vtable_name);
|
||||
visited.clear();
|
||||
push_generic_params_internal(
|
||||
tcx,
|
||||
trait_ref.skip_binder().substs,
|
||||
&mut vtable_name,
|
||||
&mut visited,
|
||||
);
|
||||
push_generic_params_internal(tcx, trait_ref.substs, &mut vtable_name, &mut visited);
|
||||
} else {
|
||||
vtable_name.push_str("_");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue