Rust-clippy: dogfood test fails when running cargo test locally

Created on 27 Oct 2017  路  1Comment  路  Source: rust-lang/rust-clippy

Running cargo test locally against the master of rust-clippy, it fails loudly with dogfood test.
Failures are due to the usage of if_chain!. E.g.:

error: Unnecessary boolean `not` operation
   --> clippy_lints/src/collapsible_if.rs:103:5
    |
103 | /     if_chain! {
104 | |         if let ast::ExprKind::Block(ref block) = else_.node;
105 | |         if let Some(else_) = expr_block(block);
106 | |         if !in_macro(else_.span);
...   |
119 | |         }
120 | |     }
    | |_____^
    |
    = note: `-D if-not-else` implied by `-D clippy-pedantic`
    = help: remove the `!` and swap the blocks of the if/else
    = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.166/index.html#if_not_else
    = note: this error originates in a macro outside of the current crate
L-bug

Most helpful comment

A missing macro check, I'm on it

>All comments

A missing macro check, I'm on it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pickfire picture pickfire  路  3Comments

0e4ef622 picture 0e4ef622  路  3Comments

Luro02 picture Luro02  路  3Comments

nbaksalyar picture nbaksalyar  路  3Comments

f-fr picture f-fr  路  3Comments