MIR inlining causes incorrect line numbers for inlined code #103068
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-mir-opt-inlining
Area: MIR inlining
C-bug
Category: This is a bug.
The following program generates a backtrace with incorrect line numbers:
Notice that frames 2 and 3 both indicate they come from line 12 (frame 2 should be at line 3).
This seems to be a result of MIR inlining because the LLVM IR (pre LLVM optimization) has the same issue:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: