diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2021-05-26 12:02:07 -0400 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2021-06-02 10:23:12 -0400 |
| commit | 3127419e2b2cb4ad2e44a06d30af6a015daf4557 (patch) | |
| tree | 9a21fcf84ff04e4d747ae57ab26a6f13ba9ea945 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | ef053fd6f0faa848097ff8b924ac859c667c8d15 (diff) | |
| download | rust-3127419e2b2cb4ad2e44a06d30af6a015daf4557.tar.gz rust-3127419e2b2cb4ad2e44a06d30af6a015daf4557.zip | |
Respond to review feedback
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 0f8dc06f4ca..7b4b0821c4b 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -238,6 +238,10 @@ pub fn push_debuginfo_type_name<'tcx>( } } + /// MSVC names enums differently than other platforms so that the debugging visualization + // format (natvis) is able to understand enums and render the active variant correctly in the + // debugger. For more information, look in `src/etc/natvis/intrinsic.natvis` and + // `EnumMemberDescriptionFactor::create_member_descriptions`. fn msvc_enum_fallback( tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, |
