-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Turn duplicated_attributes
into a late lint
#12646
Conversation
Easiest fix: turn this lint into a late lint. No more problem with proc macros. I'm frustrated as I was unable to write a case to reproduce what |
9f3d980
to
95e77bc
Compare
And fixed dogfood tests. :3 |
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.
LGTM, thanks! ❤️
I've tested this and compared it with master
, this branch fixes the issue. Could you update the PR title, the commit message, the changelog message and squash?
duplicated_attributes
into a late lint
95e77bc
to
f7d49a3
Compare
All done. :) |
@bors r+ |
Turn `duplicated_attributes` into a late lint Fixes #12537. changelog: Turn `duplicated_attributes` into a late lint
@@ -1,6 +1,6 @@ | |||
//@aux-build:proc_macro_derive.rs | |||
|
|||
#![allow(unused)] | |||
#![allow(unused, clippy::duplicated_attributes)] |
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.
Why allow? What's the duplicate here?
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.
allow(dead_code)
.
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.
the duplicated attribute was introduced in 81f5969 - it seems better to change the attribute to still test the same thing without piling on suppressions.
@@ -1,6 +1,6 @@ | |||
//@aux-build:proc_macro_derive.rs | |||
|
|||
#![allow(unused)] | |||
#![allow(unused, clippy::duplicated_attributes)] |
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.
Ditto
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.
allow(dead_code)
.
@bors r- |
☀️ Try build successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Why the r-? |
That was fast. :o |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #12537.
changelog: Turn
duplicated_attributes
into a late lint