collapse_debuginfo does not work with static declarations. #126363
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
then
shows
I'd expect DW_AT_decl_line to be 9 (the line where the macro is called), not 5 (the line where the static is defined inside the macro).
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: