Created
May 25, 2017 02:12
-
-
Save saethlin/2a523fc5747ceee89b0c367bf7648abf to your computer and use it in GitHub Desktop.
clippy is kill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰ ➤ cargo clippy | |
/home/ben/.cargo/bin/cargo-clippy: symbol lookup error: /home/ben/.cargo/bin/cargo-clippy: undefined symbol: _ZN5rustc4util5ppaux89_$LT$impl$u20$core..fmt..Display$u20$for$u20$rustc..ty..sty..TraitRef$LT$$u27$tcx$GT$$GT$3fmt17h0ad16e3ee81d6918E | |
╰ ➤ cargo install clippy --force | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Installing clippy v0.0.134 | |
Compiling dtoa v0.4.1 | |
Compiling lazy_static v0.2.8 | |
Compiling unicode-xid v0.0.4 | |
Compiling itoa v0.3.1 | |
Compiling serde v1.0.8 | |
Compiling synom v0.11.3 | |
Compiling regex-syntax v0.4.1 | |
Compiling quine-mc_cluskey v0.2.4 | |
Compiling unicode-normalization v0.1.4 | |
Compiling quote v0.3.15 | |
Compiling syn v0.11.11 | |
Compiling matches v0.1.4 | |
Compiling num-traits v0.1.37 | |
Compiling toml v0.4.1 | |
Compiling serde_json v1.0.2 | |
Compiling semver-parser v0.7.0 | |
Compiling semver v0.6.0 | |
Compiling serde_derive_internals v0.15.1 | |
Compiling serde_derive v1.0.8 | |
Compiling cargo_metadata v0.2.1 | |
Compiling clippy_lints v0.0.134 | |
error: no method named `parameter_environment` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope | |
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.134/src/utils/mod.rs:790:32 | |
| | |
790 | let parameter_env = cx.tcx.parameter_environment(parameter_item); | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error: no method named `parameter_environment` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope | |
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.134/src/utils/mod.rs:810:22 | |
| | |
810 | let env = cx.tcx.parameter_environment(env); | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.134/src/utils/mod.rs:811:69 | |
| | |
811 | !ty.subst(cx.tcx, substs).moves_by_default(cx.tcx.global_tcx(), &env, DUMMY_SP) | |
| ^^^^ expected struct `rustc::ty::ParamEnv`, found reference | |
| | |
= note: expected type `rustc::ty::ParamEnv<'_>` | |
found type `&_` | |
error: no method named `parameter_environment` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope | |
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.134/src/needless_pass_by_value.rs:85:40 | |
| | |
85 | let parameter_env = cx.tcx.parameter_environment(fn_def_id); | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error: aborting due to 4 previous errors | |
error: Could not compile `clippy_lints`. | |
Build failed, waiting for other jobs to finish... | |
error: failed to compile `clippy v0.0.134`, intermediate artifacts can be found at `/tmp/cargo-install.CWT1KXRGXAAq` | |
Caused by: | |
build failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment