Unable to install clippy?

I'm trying to install clippy, but I seem to be missing something:

$ rustup component add clippy
error: component 'clippy' for target 'x86_64-unknown-linux-gnu' is unavailable for download

$ rustup --version
rustup 1.16.0 (beab5ac2b 2018-12-06)

EDIT: also I'm on the most recent nightly:

$ rustc --version
rustc 1.34.0-nightly (c1c3c4e95 2019-01-29)

What's the output of rustup component list? Does it show clippy or clippy-preview? I think there have been issues where if you've already added clippy-preview, then the component name will not update without reinstalling rustup, even after running rustup self update.

Sometimes tools break in nightly, that may be what’s going on here.

2 Likes

Nope it's not listed at all.

I'm guessing @steveklabnik is right. If you need clippy on nightly rust, try rustup update and then check again.

Clippy's back! I always look at this before updating my nightly:

https://mexus.github.io/rustup-components-history/

2 Likes