-
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
Cleanup: Use declare_lint_pass!
and impl_lint_pass!
#3917
Comments
I'm going to try to do this. I don't think these macros are available on nightly yet, so I'm building a new toolchain that I hope will include them. |
The PR was merged and is in rust-lang/rust upstream :) |
@kraai there's no need to build a toolchain. You can download even master toolchains via rustup by using our https://github.com/rust-lang/rust-clippy/blob/master/setup-toolchain.sh script |
@oli-obk Thanks! I'm trying it now. |
I tried using |
It could be the case, that the |
@flip1995 Thanks! |
Yeah the lint was broken. You can find the fix here: flip1995/rust-clippy@87ab2e6. Just cherry-pick the commit onto your branch or copy the fix by hand :) |
@flip1995 Thanks! |
I've started working on this at https://github.com/kraai/rust-clippy/tree/declare_lint_pass. |
The current state of your branch looks good. Multiple PRs got merged yesterday/today and you should rebase on the master branch before making bigger changes. |
Introduced in rust-lang/rust#59669, macros
declare_lint_pass!
andimpl_lint_pass!
are added tolibrustc/lint/mod.rs
. These should help to remove some boilerplate from clippy as well.cc @oli-obk
The text was updated successfully, but these errors were encountered: