-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Revert "Mark attributes consumed by check_mod_attrs
as normal"
#69513
Conversation
This reverts commit d78b22f. Those changes were incompatible with incremental compilation since the effect `check_mod_attrs` has with respect to marking the attributes as used is neither persisted nor recomputed.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ecstatic-morse (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Reproducer using another attribute: $ cat src/main.rs
#![feature(marker_trait_attr)]
#[marker]
trait A {}
fn main() {}
$ cargo check
Checking unused v0.1.0 (/../unused)
Finished dev [unoptimized + debuginfo] target(s) in 0.43s
$ touch src/main.rs
$ cargo check
Checking unused v0.1.0 (/../unused)
warning: unused attribute
--> src/main.rs:3:1
|
3 | #[marker]
| ^^^^^^^^^
|
= note: `#[warn(unused_attributes)]` on by default
Finished dev [unoptimized + debuginfo] target(s) in 0.25s Looks like the general incompatibility of unused attributes lint |
@bors r+ |
📌 Commit 34f8394 has been approved by |
@bors p=1 Because it fixes a perf regression. |
☀️ Test successful - checks-azure |
This reverts commit d78b22f.
Those changes were incompatible with incremental compilation since the
effect
check_mod_attrs
has with respect to marking the attributes asused is neither persisted nor recomputed.