A ton of stuff seems to have been renamed. Errors can be seen here: https://travis-ci.org/durka/guard/jobs/180149918#L253
on it
this is not a fun one... I'm compiling already, but getting crashes in rustc and clippy when testing...
Does it compile with 1.13 or 1.14?
It compiles with rustc 1.15.0-nightly (2217bd771 2016-11-25).
The latest version of clippy won't compile on versions as old as 1.13 or 1.14 though. It requires (and has always required) a recent nightly (usually the latest, but we've ran into some problems with that one).
I was able to compile/install clippy yesterday using a nightly from November 25th. That's the last one that worked for me.
rustup toolchain install nightly-2016-11-25
rustup run nightly-2016-11-25 cargo install clippy
rustup run nightly-2016-11-25 cargo clippy
Should I start with
curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
?
@nordlow use https://rustup.rs/ instead. Not yet official, but close! It _is_ official, just not 100% ready yet.
Ok, I'm trying it out now. I chose nightly. Ok?
Just follow the instruction from the site to install it (it's going to ask you questions, can't remember which ones though).
Once rustup is installed, just run the three commands I've posted:
rustup toolchain install nightly-2016-11-25
rustup run nightly-2016-11-25 cargo install clippy
rustup run nightly-2016-11-25 cargo clippy
This will install clippy using the nightly from November 25th, and run it on your code base.
You can always install a "latest" nightly, beta or stable. Refer to https://github.com/rust-lang-nursery/rustup.rs for more info.
What does cargo clippy do? Activate it as a compiler plugin?
What does cargo clippy do?
It runs clippy on the current project.
Clippy can be run multiple ways. One of those is through a "cargo-clippy" binary, which was installed using cargo install clippy.
I basically runs clippy on your files, without having to annotate the source files or add clippy to your Cargo.toml.
I could run it as
rustup run nightly-2016-11-25 cargo build
aswell! I guess this runs it as a rustc plugin, right? This awesome!
yes ;)
My Cargo bash completion has stopped working. Previously, it was placed in /usr/local/etc/bash_completion.d/cargo. I can't find it now.
@nordlow If you'd like help using Rust or Cargo, I suggest asking on the users' forum instead.
Ok, thanks,
Most helpful comment
I was able to compile/install clippy yesterday using a nightly from November 25th. That's the last one that worked for me.