Skip to content

Commit 38a34b1

Browse files
committed
eq_op: stop testing nonminimal_bool in same file
1 parent 49adc99 commit 38a34b1

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

tests/ui/eq_op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[warn(clippy::eq_op)]
33
#[allow(clippy::identity_op, clippy::double_parens, clippy::many_single_char_names)]
44
#[allow(clippy::no_effect, unused_variables, clippy::unnecessary_operation, clippy::short_circuit_statement)]
5-
#[warn(clippy::nonminimal_bool)]
5+
#[allow(clippy::nonminimal_bool)]
66
#[allow(unused)]
77
fn main() {
88
// simple values and comparisons

tests/ui/eq_op.stderr

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,3 @@
1-
error: this boolean expression can be simplified
2-
--> $DIR/eq_op.rs:36:5
3-
|
4-
LL | true && true;
5-
| ^^^^^^^^^^^^ help: try: `true`
6-
|
7-
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
8-
9-
error: this boolean expression can be simplified
10-
--> $DIR/eq_op.rs:38:5
11-
|
12-
LL | true || true;
13-
| ^^^^^^^^^^^^ help: try: `true`
14-
15-
error: this boolean expression can be simplified
16-
--> $DIR/eq_op.rs:44:5
17-
|
18-
LL | a == b && b == a;
19-
| ^^^^^^^^^^^^^^^^ help: try: `a == b`
20-
21-
error: this boolean expression can be simplified
22-
--> $DIR/eq_op.rs:45:5
23-
|
24-
LL | a != b && b != a;
25-
| ^^^^^^^^^^^^^^^^ help: try: `a != b`
26-
27-
error: this boolean expression can be simplified
28-
--> $DIR/eq_op.rs:46:5
29-
|
30-
LL | a < b && b > a;
31-
| ^^^^^^^^^^^^^^ help: try: `a < b`
32-
33-
error: this boolean expression can be simplified
34-
--> $DIR/eq_op.rs:47:5
35-
|
36-
LL | a <= b && b >= a;
37-
| ^^^^^^^^^^^^^^^^ help: try: `a <= b`
38-
391
error: equal expressions as operands to `==`
402
--> $DIR/eq_op.rs:9:5
413
|
@@ -200,5 +162,5 @@ error: equal expressions as operands to `/`
200162
LL | const D: u32 = A / A;
201163
| ^^^^^
202164

203-
error: aborting due to 33 previous errors
165+
error: aborting due to 27 previous errors
204166

0 commit comments

Comments
 (0)