Respond to review feedback

This commit is contained in:
Wesley Wiser 2021-05-26 12:02:07 -04:00
parent ef053fd6f0
commit 3127419e2b
4 changed files with 61 additions and 98 deletions

View file

@ -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>,