-
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
Switch cargo-clippy over to use rustup's clippy-driver #2901
Comments
Yea, seems like the most sensible thing to just ship cargo-clippy |
cc @kennytm what should we do here for this? |
Also, how do we get rustup to put these things in the PATH? |
I agreed with @oli-obk that we should just ship @Manishearth The rustfmt support in rustup was added in rust-lang/rustup#1294. You'll need to add |
FWIW it should be okay if preexisting cargo-clippy is overwritten since clippy is going to break anyway |
Looks like this is completed by rust-lang/rustup#1461? |
Currently cargo-clippy calls the associated
cargo install
d clippy-driver. Now that we ship clippy-preview, we can instead make it call the one from rustup!Currently I have to hack this together to run clippy with clippy-preview: https://twitter.com/ManishEarth/status/1015818090548944896
We can use
${RUSTUP_HOME}/toolchains/${RUSTUP_TOOLCHAIN}
to find the driver. Alternatively, we perhaps can do something like rustfmt so that it's in the path (not sure how this works)Perhaps we should be shipping cargo-clippy via rustup too? This is what rustfmt does, and it's one fewer step for installing clippy.
cc @kennytm @oli-obk
The text was updated successfully, but these errors were encountered: