@@ -13,31 +13,37 @@ LL | let _ = !false;
13
13
| ^^^^^^ help: try: `true`
14
14
15
15
error: 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
17
23
|
18
24
LL | let _ = false || a;
19
25
| ^^^^^^^^^^ help: try: `a`
20
26
21
27
error: this boolean expression can be simplified
22
- --> $DIR/nonminimal_bool.rs:19 :13
28
+ --> $DIR/nonminimal_bool.rs:18 :13
23
29
|
24
30
LL | let _ = !(!a && b);
25
31
| ^^^^^^^^^^ help: try: `a || !b`
26
32
27
33
error: this boolean expression can be simplified
28
- --> $DIR/nonminimal_bool.rs:20 :13
34
+ --> $DIR/nonminimal_bool.rs:19 :13
29
35
|
30
36
LL | let _ = !(!a || b);
31
37
| ^^^^^^^^^^ help: try: `a && !b`
32
38
33
39
error: this boolean expression can be simplified
34
- --> $DIR/nonminimal_bool.rs:21 :13
40
+ --> $DIR/nonminimal_bool.rs:20 :13
35
41
|
36
42
LL | let _ = !a && !(b && c);
37
43
| ^^^^^^^^^^^^^^^ help: try: `!(a || b && c)`
38
44
39
45
error: this boolean expression can be simplified
40
- --> $DIR/nonminimal_bool.rs:29 :13
46
+ --> $DIR/nonminimal_bool.rs:28 :13
41
47
|
42
48
LL | let _ = a == b && c == 5 && a == b;
43
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +56,7 @@ LL | let _ = a == b && c == 5;
50
56
| ~~~~~~~~~~~~~~~~
51
57
52
58
error: this boolean expression can be simplified
53
- --> $DIR/nonminimal_bool.rs:30 :13
59
+ --> $DIR/nonminimal_bool.rs:29 :13
54
60
|
55
61
LL | let _ = a == b || c == 5 || a == b;
56
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -63,7 +69,7 @@ LL | let _ = a == b || c == 5;
63
69
| ~~~~~~~~~~~~~~~~
64
70
65
71
error: this boolean expression can be simplified
66
- --> $DIR/nonminimal_bool.rs:31 :13
72
+ --> $DIR/nonminimal_bool.rs:30 :13
67
73
|
68
74
LL | let _ = a == b && c == 5 && b == a;
69
75
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -76,7 +82,7 @@ LL | let _ = a == b && c == 5;
76
82
| ~~~~~~~~~~~~~~~~
77
83
78
84
error: this boolean expression can be simplified
79
- --> $DIR/nonminimal_bool.rs:32 :13
85
+ --> $DIR/nonminimal_bool.rs:31 :13
80
86
|
81
87
LL | let _ = a != b || !(a != b || c == d);
82
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -89,7 +95,7 @@ LL | let _ = a != b || c != d;
89
95
| ~~~~~~~~~~~~~~~~
90
96
91
97
error: this boolean expression can be simplified
92
- --> $DIR/nonminimal_bool.rs:33 :13
98
+ --> $DIR/nonminimal_bool.rs:32 :13
93
99
|
94
100
LL | let _ = a != b && !(a != b && c == d);
95
101
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -107,5 +113,5 @@ error: this boolean expression can be simplified
107
113
LL | if matches!(true, true) && true {
108
114
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `matches!(true, true)`
109
115
110
- error: aborting due to 12 previous errors
116
+ error: aborting due to 13 previous errors
111
117
0 commit comments