@@ -13,37 +13,31 @@ LL | let _ = !false;
1313 | ^^^^^^ help: try: `true`
1414
1515error: this boolean expression can be simplified
16- --> $DIR/nonminimal_bool.rs:13:13
17- |
18- LL | let _ = !!a;
19- | ^^^ help: try: `a`
20-
21- error: this boolean expression can be simplified
22- --> $DIR/nonminimal_bool.rs:14:13
16+ --> $DIR/nonminimal_bool.rs:15:13
2317 |
2418LL | let _ = false || a;
2519 | ^^^^^^^^^^ help: try: `a`
2620
2721error: this boolean expression can be simplified
28- --> $DIR/nonminimal_bool.rs:18 :13
22+ --> $DIR/nonminimal_bool.rs:19 :13
2923 |
3024LL | let _ = !(!a && b);
3125 | ^^^^^^^^^^ help: try: `a || !b`
3226
3327error: this boolean expression can be simplified
34- --> $DIR/nonminimal_bool.rs:19 :13
28+ --> $DIR/nonminimal_bool.rs:20 :13
3529 |
3630LL | let _ = !(!a || b);
3731 | ^^^^^^^^^^ help: try: `a && !b`
3832
3933error: this boolean expression can be simplified
40- --> $DIR/nonminimal_bool.rs:20 :13
34+ --> $DIR/nonminimal_bool.rs:21 :13
4135 |
4236LL | let _ = !a && !(b && c);
4337 | ^^^^^^^^^^^^^^^ help: try: `!(a || b && c)`
4438
4539error: this boolean expression can be simplified
46- --> $DIR/nonminimal_bool.rs:28 :13
40+ --> $DIR/nonminimal_bool.rs:29 :13
4741 |
4842LL | let _ = a == b && c == 5 && a == b;
4943 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -56,7 +50,7 @@ LL | let _ = a == b && c == 5;
5650 | ~~~~~~~~~~~~~~~~
5751
5852error: this boolean expression can be simplified
59- --> $DIR/nonminimal_bool.rs:29 :13
53+ --> $DIR/nonminimal_bool.rs:30 :13
6054 |
6155LL | let _ = a == b || c == 5 || a == b;
6256 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -69,7 +63,7 @@ LL | let _ = a == b || c == 5;
6963 | ~~~~~~~~~~~~~~~~
7064
7165error: this boolean expression can be simplified
72- --> $DIR/nonminimal_bool.rs:30 :13
66+ --> $DIR/nonminimal_bool.rs:31 :13
7367 |
7468LL | let _ = a == b && c == 5 && b == a;
7569 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -82,7 +76,7 @@ LL | let _ = a == b && c == 5;
8276 | ~~~~~~~~~~~~~~~~
8377
8478error: this boolean expression can be simplified
85- --> $DIR/nonminimal_bool.rs:31 :13
79+ --> $DIR/nonminimal_bool.rs:32 :13
8680 |
8781LL | let _ = a != b || !(a != b || c == d);
8882 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,7 +89,7 @@ LL | let _ = a != b || c != d;
9589 | ~~~~~~~~~~~~~~~~
9690
9791error: this boolean expression can be simplified
98- --> $DIR/nonminimal_bool.rs:32 :13
92+ --> $DIR/nonminimal_bool.rs:33 :13
9993 |
10094LL | let _ = a != b && !(a != b && c == d);
10195 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -113,5 +107,5 @@ error: this boolean expression can be simplified
113107LL | if matches!(true, true) && true {
114108 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `matches!(true, true)`
115109
116- error: aborting due to 13 previous errors
110+ error: aborting due to 12 previous errors
117111
0 commit comments