arcnmx / cargo-clippy

cargo clippy
MIT License
68 stars 11 forks source link

Fails to build: this function takes 2 parameters but 1 parameter was supplied [E0061] #6

Closed cmlsharp closed 8 years ago

cmlsharp commented 8 years ago
$ rustc --version
rustc 1.6.0-nightly (9303055f3 2015-11-19)
$ cargo build --release --verbose
       Fresh unicode-normalization v0.1.1
   Compiling clippy v0.0.25 (https://github.com/Manishearth/rust-clippy#409c0f09)
     Running `rustc /home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/lib.rs --crate-name clippy --crate-type dylib -C prefer-dynamic -C opt-level=3 -C metadata=fcdc2e9bb20e8162 -C extra-filename=-fcdc2e9bb20e8162 --out-dir /home/chad/Public/cargo-clippy/target/release/deps --emit=dep-info,link -L dependency=/home/chad/Public/cargo-clippy/target/release/deps -L dependency=/home/chad/Public/cargo-clippy/target/release/deps --extern unicode_normalization=/home/chad/Public/cargo-clippy/target/release/deps/libunicode_normalization-78fb2197226c310a.rlib --cap-lints allow`
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:198:26: 198:59 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:198                          ast_util::int_ty_to_string(*sity)),
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:198:26: 198:59 help: run `rustc --explain E0061` to see a detailed explanation
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:200:30: 200:64 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:200                         ("", ast_util::uint_ty_to_string(*uity)),
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/consts.rs:200:30: 200:64 help: run `rustc --explain E0061` to see a detailed explanation
error: aborting due to 2 previous errors
Could not compile `clippy`.

Caused by:
  Process didn't exit successfully: `rustc /home/chad/.cargo/git/checkouts/rust-clippy-297222992dcb0086/master/src/lib.rs --crate-name clippy --crate-type dylib -C prefer-dynamic -C opt-level=3 -C metadata=fcdc2e9bb20e8162 -C extra-filename=-fcdc2e9bb20e8162 --out-dir /home/chad/Public/cargo-clippy/target/release/deps --emit=dep-info,link -L dependency=/home/chad/Public/cargo-clippy/target/release/deps -L dependency=/home/chad/Public/cargo-clippy/target/release/deps --extern unicode_normalization=/home/chad/Public/cargo-clippy/target/release/deps/libunicode_normalization-78fb2197226c310a.rlib --cap-lints allow` (exit code: 101)
arcnmx commented 8 years ago

Builds fine here, this is more a clippy issue. You'll want to make sure you're using a more up to date rustc nightly (2015-11-30), and cargo update to pull in the latest clippy changes. If you're stuck on the older rustc, you'll need to jump through some hoops to make sure you have a matching local clippy version.