rust/compiler/rustc_codegen_ssa
bors 885399992c Auto merge of #86636 - wesleywiser:misc_enum_improvements, r=michaelwoerister
[msvc] Consistently show active variant and fix visualization for single variant enums

Prior to this change, there were a few cases where inspecting an enum in either WinDbg or Visual Studio would not show the active variant name. After these changes, we now consistently show the active variant name as `[variant]` in the debugger.

We also didn't handle single variant enums very well. That is now also resolved.

Before:
![image](https://user-images.githubusercontent.com/831192/123480097-dc8b5f00-d5cf-11eb-93a8-9fc05a97029b.png)

After:
![image](https://user-images.githubusercontent.com/831192/123479966-aa79fd00-d5cf-11eb-955e-9798616a8829.png)

r? `@michaelwoerister`
2021-07-06 19:31:24 +00:00
..
src Auto merge of #86636 - wesleywiser:misc_enum_improvements, r=michaelwoerister 2021-07-06 19:31:24 +00:00
Cargo.toml rustc: Store metadata-in-rlibs in object files 2021-06-04 10:05:20 -07:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.