Skip to content

Commit

Permalink
Auto merge of rust-lang#103071 - wesleywiser:fix_inlined_line_numbers…
Browse files Browse the repository at this point in the history
…, r=davidtwco

Fix line numbers for MIR inlined code

`should_collapse_debuginfo` detects if the specified span is part of a
macro expansion however it does this by checking if the span is anything
other than a normal (non-expanded) kind, then the span sequence is
walked backwards to the root span.

This doesn't work when the MIR inliner inlines code as it creates spans
with expansion information set to `ExprKind::Inlined` and results in the
line number being attributed to the inline callsite rather than the
normal line number of the inlined code.

Fixes rust-lang#103068
  • Loading branch information
bors committed Oct 28, 2022
2 parents 94aa344 + 5d5bb36 commit 0f0a237
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0f0a237

Please sign in to comment.