-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Track more diagnostics in rustc_expand
#112396
Conversation
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
compiler/rustc_expand/src/base.rs
Outdated
@@ -1132,11 +1132,13 @@ impl<'a> ExtCtxt<'a> { | |||
/// | |||
/// Compilation will be stopped in the near future (at the end of | |||
/// the macro expansion phase). | |||
#[track_caller] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just go thru and add it to like all of them?
or at least like create_err
, emit_err
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
span_bug
and bug
don't have #[track_caller]
, so this does not matter.
For struct_span_err
, create_err
and emit_err
I've added #[track_caller]
, good call, thanks!
3e20f15
to
c38d80e
Compare
r? @compiler-errors @bors r+ rollup |
…llaumeGomez Rollup of 9 pull requests Successful merges: - rust-lang#112034 (Migrate `item_opaque_ty` to Askama) - rust-lang#112179 (Avoid passing --cpu-features when empty) - rust-lang#112309 (bootstrap: remove dependency `is-terminal`) - rust-lang#112388 (Migrate GUI colors test to original CSS color format) - rust-lang#112389 (Add a test for rust-lang#105709) - rust-lang#112392 (Fix ICE for while loop with assignment condition with LHS place expr) - rust-lang#112394 (Remove accidental comment) - rust-lang#112396 (Track more diagnostics in `rustc_expand`) - rust-lang#112401 (Don't `use compile_error as print`) r? `@ghost` `@rustbot` modify labels: rollup
I wish we could lint this somehow...