diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2022-10-14 18:44:30 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-10-29 11:14:04 -0400 |
| commit | 1de923f392d33e2aed7349a3eda05f9b36a06df4 (patch) | |
| tree | 03743b532f52bc9364790fbecd85f06463c3eaf4 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 4a6fc7a2f23e6f940f0bb0cdb4954cb9f9677797 (diff) | |
| download | rust-1de923f392d33e2aed7349a3eda05f9b36a06df4.tar.gz rust-1de923f392d33e2aed7349a3eda05f9b36a06df4.zip | |
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.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
