Skip to content

Clippy 0.0.131 fails to compile with nightly 2017-05-04 #1727

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

Closed
sztosz opened this issue May 5, 2017 · 5 comments
Closed

Clippy 0.0.131 fails to compile with nightly 2017-05-04 #1727

sztosz opened this issue May 5, 2017 · 5 comments

Comments

@sztosz
Copy link

sztosz commented May 5, 2017

Clippy 0.0.131 fails to compile with nightly 2017-05-04.
Nightly 2017-05-05 is broken and can't be installed rust-lang/rustup#1092
I also tried with clippy straight from the master branch

[dependencies]
clippy = {git = "https://github.com/Manishearth/rust-clippy", optional = true}

It fails with that error:

error[E0107]: wrong number of lifetime parameters: expected 0, found 1
   --> /Users/bartosz/.cargo/git/checkouts/rust-clippy-eb94f5e90699ab2d/3b03891/clippy_lints/src/loops.rs:878:35
    |
878 |     indexed: HashMap<Name, Option<CodeExtent<'tcx>>>, // indexed variables, the extent is None for global
    |                                   ^^^^^^^^^^^^^^^^ unexpected lifetime parameter

I'm a real newbie to Rust, so I'm not sure what to try more other than report it.

@oli-obk
Copy link
Contributor

oli-obk commented May 5, 2017

thx, I'm already on it

@oli-obk
Copy link
Contributor

oli-obk commented May 5, 2017

hmm... it works with nightly-2017-05-04... I'm not sure what causes this... Can you try running cargo update?

@sztosz
Copy link
Author

sztosz commented May 5, 2017

Damn... I learn more and more about rust almost every minute I'm doing with it anything. I installed nightly-2017-05-04 but my default was nightly from april, because if you install nightly with explicit date it does not overwrite current nightly. With nightly 2017-05-04 it works like a charm!

I'm sorry my lack of knowledge took your valuable time, but at least it learned me something.

@oli-obk
Copy link
Contributor

oli-obk commented May 5, 2017

Great! always happy to help

@oli-obk oli-obk closed this as completed May 5, 2017
@Arnavion
Copy link
Contributor

Arnavion commented May 14, 2017

This is actually happening now with clippy v0.0.132 with rustc 1.19.0-nightly (826d8f385 2017-05-13) because of rust-lang/rust@ea1c6df#diff-eaec58cd2e0c9e0564f2f3f7e417340cL38

Edit: Will open new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants