about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-05-20 13:58:13 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-06-02 10:23:12 -0400
commitef053fd6f0faa848097ff8b924ac859c667c8d15 (patch)
tree0309f2d825d221c9893c3d273e5fe671ad4d105b /compiler/rustc_codegen_llvm/src/debuginfo
parentd2d6fa852d22eb4e9259cd708e33e7afaa9211d0 (diff)
downloadrust-ef053fd6f0faa848097ff8b924ac859c667c8d15.tar.gz
rust-ef053fd6f0faa848097ff8b924ac859c667c8d15.zip
Change the type name from `_enum<..>` to `enum$<..>`
This makes the type name inline with the proposed standard in #85269.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
index 1d81d880b8d..f56dace0d33 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
@@ -1537,7 +1537,7 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
                     // For MSVC, we generate a union of structs for each variant with an explicit
                     // discriminant field roughly equivalent to the following C:
                     // ```c
-                    // union _enum<{name}> {
+                    // union enum$<{name}> {
                     //   struct {variant 0 name} {
                     //     tag$ variant$;
                     //     <variant 0 fields>
@@ -1628,7 +1628,7 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
                 // make the discriminant field that type. We then use natvis to render the enum type correctly in Windbg/VS.
                 // This will generate debuginfo roughly equivalent to the following C:
                 // ```c
-                // union _enum<{name}, {min niche}, {max niche}, {dataful variant name} {
+                // union enum$<{name}, {min niche}, {max niche}, {dataful variant name} {
                 //   struct dataful_variant {
                 //     <fields in dataful variant>
                 //   },
@@ -1639,7 +1639,7 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
                 //   }
                 // }
                 // ```
-                // The natvis in `intrinsic.natvis` matches on the type name `_enum<*, *, *, *>`
+                // The natvis in `intrinsic.natvis` matches on the type name `enum$<*, *, *, *>`
                 // and evaluates `this.discriminant$.discriminant`. If the value is between
                 // the min niche and max niche, then the enum is in the dataful variant and
                 // `this.dataful_variant` is rendered. Otherwise, the enum is in one of the