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