Skip to content

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

Closed
@mcilloni

Description

@mcilloni
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions