@@ -13,31 +13,37 @@ LL | let _ = !false;
1313 | ^^^^^^ help: try: `true`
1414
1515error: this boolean expression can be simplified
16- --> $DIR/nonminimal_bool.rs:15:13
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
1723 |
1824LL | let _ = false || a;
1925 | ^^^^^^^^^^ help: try: `a`
2026
2127error: this boolean expression can be simplified
22- --> $DIR/nonminimal_bool.rs:19 :13
28+ --> $DIR/nonminimal_bool.rs:18 :13
2329 |
2430LL | let _ = !(!a && b);
2531 | ^^^^^^^^^^ help: try: `a || !b`
2632
2733error: this boolean expression can be simplified
28- --> $DIR/nonminimal_bool.rs:20 :13
34+ --> $DIR/nonminimal_bool.rs:19 :13
2935 |
3036LL | let _ = !(!a || b);
3137 | ^^^^^^^^^^ help: try: `a && !b`
3238
3339error: this boolean expression can be simplified
34- --> $DIR/nonminimal_bool.rs:21 :13
40+ --> $DIR/nonminimal_bool.rs:20 :13
3541 |
3642LL | let _ = !a && !(b && c);
3743 | ^^^^^^^^^^^^^^^ help: try: `!(a || b && c)`
3844
3945error: this boolean expression can be simplified
40- --> $DIR/nonminimal_bool.rs:29 :13
46+ --> $DIR/nonminimal_bool.rs:28 :13
4147 |
4248LL | let _ = a == b && c == 5 && a == b;
4349 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +56,7 @@ LL | let _ = a == b && c == 5;
5056 | ~~~~~~~~~~~~~~~~
5157
5258error: this boolean expression can be simplified
53- --> $DIR/nonminimal_bool.rs:30 :13
59+ --> $DIR/nonminimal_bool.rs:29 :13
5460 |
5561LL | let _ = a == b || c == 5 || a == b;
5662 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -63,7 +69,7 @@ LL | let _ = a == b || c == 5;
6369 | ~~~~~~~~~~~~~~~~
6470
6571error: this boolean expression can be simplified
66- --> $DIR/nonminimal_bool.rs:31 :13
72+ --> $DIR/nonminimal_bool.rs:30 :13
6773 |
6874LL | let _ = a == b && c == 5 && b == a;
6975 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -76,7 +82,7 @@ LL | let _ = a == b && c == 5;
7682 | ~~~~~~~~~~~~~~~~
7783
7884error: this boolean expression can be simplified
79- --> $DIR/nonminimal_bool.rs:32 :13
85+ --> $DIR/nonminimal_bool.rs:31 :13
8086 |
8187LL | let _ = a != b || !(a != b || c == d);
8288 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -89,7 +95,7 @@ LL | let _ = a != b || c != d;
8995 | ~~~~~~~~~~~~~~~~
9096
9197error: this boolean expression can be simplified
92- --> $DIR/nonminimal_bool.rs:33 :13
98+ --> $DIR/nonminimal_bool.rs:32 :13
9399 |
94100LL | let _ = a != b && !(a != b && c == d);
95101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,5 +113,5 @@ error: this boolean expression can be simplified
107113LL | if matches!(true, true) && true {
108114 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `matches!(true, true)`
109115
110- error: aborting due to 12 previous errors
116+ error: aborting due to 13 previous errors
111117
0 commit comments