> if I could configure cargo to only use nightly Rust when invoking clippy,
This is
rustup run nightly cargo clippy
or cargo +nightly clippy
if you have rustup installed.> if I could configure cargo to only use nightly Rust when invoking clippy,
This is
rustup run nightly cargo clippy
or cargo +nightly clippy
if you have rustup installed.Using clippy is not as straightforward as you put it because clippy and the latest nightly often are broken together. There would be much less hassle if it was a stable crate. Also no worries of backwards compatibility between stable/nightly.
- rg
The plan for "stable" clippy is to bundle it with releases, precompiled. It will still use the internal APIs, but from a user's perspective they just have to `rustup component add clippy` and it will magically work.
Whoa, that's the first I've heard about this. Very exciting plans!
We've got a good idea of how it will happen, but the infra stuff has to happen first -- nobody wants to complicate the existing infra if it's going to go away.
I don't have a clear timeline on that. A few months I guess.
On clippy's side we don't need many changes to make this work.