-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
detect allow_attributes on internal attributes #13643
detect allow_attributes on internal attributes #13643
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @xFrednet (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Hey king, welcome to Clippy or at least the Clippy repo ^^ This is intentional according to the lint description:
This was just a wild guess during the implementation, but it seems to mostly hold true. Especially on the root module I'd say it's likely that people just add The nicest solution would be to add a configuration for it. If you're interested here are the docs: https://doc.rust-lang.org/clippy/development/adding_lints.html#adding-configuration-to-a-lint |
hi Fred! well, that makes sense I should've read. As we discussed in private, maybe make this an early pass lint, though it seems hard because cfg() hasn't been processed at that point yet? Consider this PR to be retracted I guess, I was to eager to delete something |
There are two places that |
☔ The latest upstream changes (presumably #13639) made this pull request unmergeable. Please resolve the merge conflicts. |
I think we can close this one, since the main motivation was the usage of the attribute style and with it now being/becoming an early lint we can keep this check :D |
Oops, thought it already was closed. Yes, this pr is wrong and closing is correct |
I was working on attributes, part of which is that I might remove AttrStyle here. Don't worry about that, but it meant I was refactoring this and I saw no reason we don't lint on internal attributes. Is there a good reason? Then feel free to close :)
changelog:
changelog: [
allow_attributes
]: lint internal attributes too