diff --git a/tests/ui/eq_op.rs b/tests/ui/eq_op.rs index 2d2689075a1..c93f520bee2 100644 --- a/tests/ui/eq_op.rs +++ b/tests/ui/eq_op.rs @@ -2,7 +2,7 @@ #[warn(clippy::eq_op)] #[allow(clippy::identity_op, clippy::double_parens, clippy::many_single_char_names)] #[allow(clippy::no_effect, unused_variables, clippy::unnecessary_operation, clippy::short_circuit_statement)] -#[warn(clippy::nonminimal_bool)] +#[allow(clippy::nonminimal_bool)] #[allow(unused)] fn main() { // simple values and comparisons diff --git a/tests/ui/eq_op.stderr b/tests/ui/eq_op.stderr index 2a2f95c677c..e37c0c22907 100644 --- a/tests/ui/eq_op.stderr +++ b/tests/ui/eq_op.stderr @@ -1,41 +1,3 @@ -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:36:5 - | -LL | true && true; - | ^^^^^^^^^^^^ help: try: `true` - | - = note: `-D clippy::nonminimal-bool` implied by `-D warnings` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:38:5 - | -LL | true || true; - | ^^^^^^^^^^^^ help: try: `true` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:44:5 - | -LL | a == b && b == a; - | ^^^^^^^^^^^^^^^^ help: try: `a == b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:45:5 - | -LL | a != b && b != a; - | ^^^^^^^^^^^^^^^^ help: try: `a != b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:46:5 - | -LL | a < b && b > a; - | ^^^^^^^^^^^^^^ help: try: `a < b` - -error: this boolean expression can be simplified - --> $DIR/eq_op.rs:47:5 - | -LL | a <= b && b >= a; - | ^^^^^^^^^^^^^^^^ help: try: `a <= b` - error: equal expressions as operands to `==` --> $DIR/eq_op.rs:9:5 | @@ -200,5 +162,5 @@ error: equal expressions as operands to `/` LL | const D: u32 = A / A; | ^^^^^ -error: aborting due to 33 previous errors +error: aborting due to 27 previous errors