Skip to content
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

error: multiple input filenames provided with clippy 0.0.191 and last nightly #2602

Closed
mcilloni opened this issue Mar 31, 2018 · 4 comments
Closed
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@mcilloni
Copy link

mcilloni commented Mar 31, 2018

$ cargo new --lib lol
     Created library `lol` project
$ cd lol/
$ cargo clippy
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/home/marco/.cargo/bin/clippy-driver /usr/bin/rustc - --crate-name ___ --print=file-names --target x86_64-unknown-linux-gnu --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro` (exit code: 101)
--- stderr
error: multiple input filenames provided


$ rustc -V 
rustc 1.26.0-nightly (80785a547 2018-03-30)
$ cargo-clippy                                                                                                                                                                       
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/home/marco/.cargo/bin/clippy-driver /usr/bin/rustc - --crate-name ___ --print=file-names --target x86_64-unknown-linux-gnu --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro` (exit code: 101)
--- stderr
error: multiple input filenames provided


$ cargo-clippy -V                                                                                                                                                                     
0.0.191

Like in #2566, clippy is failing on my system with a "multiple input filenames" error. I cannot find any way to work around this, and invoking cargo-clippy directly leads to the same error.

@oli-obk
Copy link
Contributor

oli-obk commented Mar 31, 2018

We have some weird code that checks the first argument and removes it if it is rustc, maybe we can now remove it unconditionally

@phansch phansch added the C-bug Category: Clippy is not doing the correct thing label Apr 1, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Apr 1, 2018

We have some weird code that checks the first argument and removes it if it is rustc, seems to not work for paths

@phansch
Copy link
Member

phansch commented Dec 7, 2018

@mcilloni Is this still happening for you when using Clippy via Rustup?

@ThibsG
Copy link
Contributor

ThibsG commented Oct 25, 2020

I think we can close this now, since we cannot reproduce this anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

No branches or pull requests

5 participants