Closed
Description
This is a tracking issue for the #[collapse_debuginfo]
attribute (rust-lang/compiler-team#386).
The feature gate for the issue is #![feature(collapse_debuginfo)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement the MCP (ssa: implement
#[collapse_debuginfo]
#99556) - Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Ensure consistency of behaviour with
#[track_caller]
- Code in block passed to macro has line number of macro invocation #39153 (comment)
Implementation history
- Discussed in Code in block passed to macro has line number of macro invocation #39153..
- ..then proposed in RFC RFC: Debuggable macro expansions rfcs#2117 where the language team recommended a compiler team MCP..
- ..and then finally accepted in Debuggable Macro Expansions compiler-team#386.
- Initially implemented in ssa: implement
#[collapse_debuginfo]
#99556.