Skip to content

Unable to compile my project with clippy #2704

Closed
@Sh4pe

Description

@Sh4pe

Preparation

Hi! I'm trying to compile my project with clippy, but it does not work. In order to make my project use clippy, I've

  • added clippy = { version = "*", optional = true } to my [dependencies] section of my Cargo.toml
  • added these lines to my lib.rs
#![cfg_attr(feature="clippy", feature(plugin))]
#![cfg_attr(feature="clippy", plugin(clippy))]
  • made sure that I'm using the latest nightly version of everything, for example
% rustc --version
rustc 1.27.0-nightly (686d0ae13 2018-04-27)

Problem

But when I'm trying to compile my project using

cargo +nightly build --features "clippy"

I'm these rather lengthy compile errors.

Is there anything I can do or am I using clippy wrong?

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