-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-collapse_debuginfo`#![feature(collapse_debuginfo)]``#![feature(collapse_debuginfo)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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.
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-collapse_debuginfo`#![feature(collapse_debuginfo)]``#![feature(collapse_debuginfo)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.