Inaccurate debuginfo for pointer types in PDB #106679
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code compiled using
x86_64-pc-windows-msvc
toolchain:References and raw pointers are practically indistinguishable during debugging:
In the raw PDB dump, we can see that
my_string_ref
,my_string_ref_mut
,my_string_ptr_const
, andmy_string_ptr_mut
share the same type:PDB dump
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: