Closed
Description
During the MIR inlining pass, we add scopes from the callee to Body.source_scopes
in the caller. However, we do not update source_scope_local_data
, which causes any inlined scopes to have no entry in the caller source_scope_local_data
. This causes an ICE in Miri when we try to generate a stacktrace - however, the ICE occurs in rustc code, so it's possible that we might run across this without Miri.
Metadata
Metadata
Assignees
Labels
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Debugging information in compiled programs (DWARF, PDB, etc.)Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Relevant to the compiler team, which will review and decide on the PR/issue.