-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cleanup span quoting #87042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup span quoting #87042
Conversation
The flag has a vague meaning and is used for a single diagnostic change that is low benefit and appears only under `-Z macro_backtrace`.
This information is already available from `ExpnData`
- The `Rustc::expn_id` field kept redundant information - `SyntaxContext` is no longer thrown away before `save_proc_macro_span` because it's thrown away during metadata encoding anyway
A drive-by change.
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
I still can't say I like how #84278 is done, but with all redundant data removed the implementation is at least isolated enough, and I can't suggest a fundamentally better implementation strategy right now. |
I still think that displaying 'procedural macro' in the backtrace output is useful (especially if we ever stabilize However, we're still a ways off from this feature actually being used (since the |
@bors r+ |
📌 Commit 4ba91a0 has been approved by |
☀️ Test successful - checks-actions |
I finally got to reviewing #84278.
See the individual commit messages.
r? @Aaron1011