diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2021-10-19 11:46:51 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2021-10-19 13:57:35 +0200 |
| commit | bf39d86e0f34c439306f9dff9d01ca15792b5fd5 (patch) | |
| tree | 22fdfcd4304100b1900582d3e43ed61d748c25ae /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | cd8b56f528631b128f36605b28ae06e36377dc68 (diff) | |
| download | rust-bf39d86e0f34c439306f9dff9d01ca15792b5fd5.tar.gz rust-bf39d86e0f34c439306f9dff9d01ca15792b5fd5.zip | |
Erase late-bound regions before computing vtable debuginfo name.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 609316ea69f..accb54e4645 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -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("_"); } |
