Field accesses in debuginfo are treated as real uses of the base local #77454
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
MIR may contain debuginfo like this after inlining:
Here, the field access
(*_6).0
is treated like a use of the_6
local in MIR visitors (usingPlaceContext::NonMutatingUse
), even though it is not an actual use of_6
.Instead, it should be using
PlaceContext::NonUse(NonUseContext::VarDebugInfo)
.The text was updated successfully, but these errors were encountered: