]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #90050 - michaelwoerister:fix-vtable-debug-name-crash-90019, r=wesleywiser
authorbors <bors@rust-lang.org>
Wed, 20 Oct 2021 14:37:48 +0000 (14:37 +0000)
committerbors <bors@rust-lang.org>
Wed, 20 Oct 2021 14:37:48 +0000 (14:37 +0000)
commit3d71e749a244890cd370d49963e747cf92f4a037
tree91367ad6fd885986b7bda1dfd975bc2a1ccb2751
parent6162529a01473bbb2427fa27354cbafc3c514eee
parent5929cf0d67c0678e599190007c6e62be6a6839f7
Auto merge of #90050 - michaelwoerister:fix-vtable-debug-name-crash-90019, r=wesleywiser

Erase late-bound regions before computing vtable debuginfo name.

Fixes #90019.

The `msvc_enum_fallback()` for computing enum type names needs to access the memory layout of niche enums in order to determine the type name. `compute_debuginfo_vtable_name()` did not properly erase regions before computing type names which made memory layout computation ICE when encountering un-erased regions.

r? `@wesleywiser`