about summary refs log tree commit diff
path: root/src/test/codegen/mir-inlined-line-numbers.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-25/+0
2022-10-14Fix line numbers for MIR inlined codeWesley Wiser-1/+1
`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.
2022-10-14Add test case for MIR inlining debuginfo line numbersWesley Wiser-0/+25