From ef053fd6f0faa848097ff8b924ac859c667c8d15 Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Thu, 20 May 2021 13:58:13 -0400 Subject: Change the type name from `_enum<..>` to `enum$<..>` This makes the type name inline with the proposed standard in #85269. --- compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_codegen_ssa/src/debuginfo') diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 1f3e9493318..0f8dc06f4ca 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -267,7 +267,7 @@ pub fn push_debuginfo_type_name<'tcx>( let max = dataful_discriminant_range.end(); let max = tag.value.size(&tcx).truncate(*max); - output.push_str("_enum<"); + output.push_str("enum$<"); push_item_name(tcx, def.did, true, output); push_type_params(tcx, substs, output, visited); @@ -275,7 +275,7 @@ pub fn push_debuginfo_type_name<'tcx>( output.push_str(&format!(", {}, {}, {}>", min, max, dataful_variant_name)); } else { - output.push_str("_enum<"); + output.push_str("enum$<"); push_item_name(tcx, def.did, true, output); push_type_params(tcx, substs, output, visited); output.push('>'); -- cgit 1.4.1-3-g733a5