Lint pass macros#3968
Conversation
There was a problem hiding this comment.
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 |
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Pass; | ||
| declare_lint_pass!(NeedlessUpdate => [NEEDLESS_UPDATE]); |
There was a problem hiding this comment.
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.