-
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
Check attribute usage #28650
Check attribute usage #28650
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
ab80e64
to
fb22683
Compare
r? @nrc |
Starting a crater build to evaluate the impact |
Looks like there's only one regression, so should be easy to send a PR for! |
I’d replace error message wording from “should” to “may only” or “may”. Otherwise always 👍 for such correctness PRs. |
if words.is_none() { | ||
return; | ||
} | ||
let words = words.unwrap(); |
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.
nit:
let words = match attr.meta_item_list() {
Some(words) => words,
None => {
return;
}
};
r=me with the style nit fixed |
c04e6d9
to
c5a7d17
Compare
Done. |
@bors: r+ |
📌 Commit c5a7d17 has been approved by |
⌛ Testing commit c5a7d17 with merge 186df85... |
💔 Test failed - auto-mac-32-opt |
@bors r=nrc |
📌 Commit 61f5b2b has been approved by |
IMO we should have made this a warning for one release cycle, but I guess this is fine too. |
This is technically a [breaking-change].
Fix #2809.
Fix #22746.