-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Unable to compile my project with clippy #2704
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
Comments
Clippy appears to be broken on the latest nightly :( |
+1 for compile failed😢 |
Thanks, the past few nightlies have broken clippy every time, unfortunately. Going to take a look at it now. |
Nevermind, this should be fixed with the next clippy release. It's already fixed on master.
|
I'm arguing that this should be the official way to install clippy. Realeasing crates.io versions is just a lot of effort for little gain and unnecessarily delays the time until ppl can use clippy on the bottleneck of us publishing. Master is usually fixed pretty quickly, the publish can take a few days, especially if a weekend comes in between |
If you're building on CI, you should probably also pin the version of rust and clippy so that they don't change without choice from the repository. For example, what I'm now running on Travis: env:
matrix:
include:
# Clippy/Format
- rust: nightly-2018-04-28
env: CLIPPY_VERSION="1742229ebb7843a65c05ee495d8de5366fcc5567"
install:
- rustup component add rustfmt-preview || true
- cargo install clippy --git https://github.com/rust-lang-nursery/rust-clippy.git --rev $CLIPPY_VERSION || true
script:
- cargo clippy --all-targets --tests -- -D clippy
- cargo fmt -- --write-mode=diff This keeps your build reproducible and outside changes from breaking your build. |
Going to close this issue as Clippy is now available via rustup only. |
Preparation
Hi! I'm trying to compile my project with clippy, but it does not work. In order to make my project use clippy, I've
clippy = { version = "*", optional = true }
to my[dependencies]
section of myCargo.toml
lib.rs
Problem
But when I'm trying to compile my project using
I'm these rather lengthy compile errors.
Is there anything I can do or am I using clippy wrong?
The text was updated successfully, but these errors were encountered: