-
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
Lint pass macros #3968
Lint pass macros #3968
Conversation
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.
There are some files untouched, e.g. clippy_lints/src/unwrap.rs
and clippy_lints/src/ptr_offset_with_cast.rs
. Others? *)
Some things I noticed by going through these changes, that need to be addressed in one way or another.
*) LintPass
is still implemented by hand for this 2 files above. For both files this is not necessary. I assume you missed those by searching for impl LintPass
with a regexp. In clippy_lints/src/ptr_offset_with_cast.rs
the imports should be fixed.
Oops, I searched for |
@@ -26,20 +26,9 @@ declare_clippy_lint! { | |||
"using `Foo { ..base }` when there are no missing fields" | |||
} | |||
|
|||
#[derive(Copy, Clone)] | |||
pub struct Pass; | |||
declare_lint_pass!(NeedlessUpdate => [NEEDLESS_UPDATE]); |
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.
It seems that it doesn't trigger the module_name_repetition
lint
This LGTM now! Thanks for the quick fixes. Could you extend the test file |
☔ The latest upstream changes (presumably #3966) made this pull request unmergeable. Please resolve the merge conflicts. |
Thanks! Just needs a rebase. |
@flip1995 I'm trying to rebase it now. |
Thanks! @bors r+ p=1 |
📌 Commit ef29db7 has been approved by |
☀️ Test successful - checks-travis, status-appveyor |
No description provided.