@@ -86,70 +86,82 @@ LL | if x > y {
8686 | ^^^^^ help: try simplifying it as shown: `x & !y`
8787
8888error: this comparison might be written more concisely
89- --> tests/ui/bool_comparison.rs:135 :8
89+ --> tests/ui/bool_comparison.rs:133 :8
9090 |
9191LL | if a == !b {};
9292 | ^^^^^^^ help: try simplifying it as shown: `a != b`
9393
9494error: this comparison might be written more concisely
95- --> tests/ui/bool_comparison.rs:137 :8
95+ --> tests/ui/bool_comparison.rs:135 :8
9696 |
9797LL | if !a == b {};
9898 | ^^^^^^^ help: try simplifying it as shown: `a != b`
9999
100100error: this comparison might be written more concisely
101- --> tests/ui/bool_comparison.rs:142 :8
101+ --> tests/ui/bool_comparison.rs:140 :8
102102 |
103103LL | if b == !a {};
104104 | ^^^^^^^ help: try simplifying it as shown: `b != a`
105105
106106error: this comparison might be written more concisely
107- --> tests/ui/bool_comparison.rs:144 :8
107+ --> tests/ui/bool_comparison.rs:142 :8
108108 |
109109LL | if !b == a {};
110110 | ^^^^^^^ help: try simplifying it as shown: `b != a`
111111
112112error: equality checks against false can be replaced by a negation
113- --> tests/ui/bool_comparison.rs:169 :8
113+ --> tests/ui/bool_comparison.rs:166 :8
114114 |
115115LL | if false == m!(func) {}
116116 | ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
117117
118118error: equality checks against false can be replaced by a negation
119- --> tests/ui/bool_comparison.rs:171 :8
119+ --> tests/ui/bool_comparison.rs:168 :8
120120 |
121121LL | if m!(func) == false {}
122122 | ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
123123
124124error: equality checks against true are unnecessary
125- --> tests/ui/bool_comparison.rs:173 :8
125+ --> tests/ui/bool_comparison.rs:170 :8
126126 |
127127LL | if true == m!(func) {}
128128 | ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
129129
130130error: equality checks against true are unnecessary
131- --> tests/ui/bool_comparison.rs:175 :8
131+ --> tests/ui/bool_comparison.rs:172 :8
132132 |
133133LL | if m!(func) == true {}
134134 | ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
135135
136136error: equality checks against false can be replaced by a negation
137- --> tests/ui/bool_comparison.rs:193 :14
137+ --> tests/ui/bool_comparison.rs:190 :14
138138 |
139139LL | let _ = ((1 < 2) == false) as usize;
140140 | ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `1 >= 2`
141141
142142error: equality checks against false can be replaced by a negation
143- --> tests/ui/bool_comparison.rs:195 :14
143+ --> tests/ui/bool_comparison.rs:192 :14
144144 |
145145LL | let _ = (false == m!(func)) as usize;
146146 | ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
147147
148148error: this comparison might be written more concisely
149- --> tests/ui/bool_comparison.rs:199 :14
149+ --> tests/ui/bool_comparison.rs:196 :14
150150 |
151151LL | let _ = ((1 < 2) == !m!(func)) as usize;
152152 | ^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `(1 < 2) != m!(func)`
153153
154- error: aborting due to 25 previous errors
154+ error: order comparisons between booleans can be simplified
155+ --> tests/ui/bool_comparison.rs:206:9
156+ |
157+ LL | x > m!(func)
158+ | ^^^^^^^^^^^^ help: try simplifying it as shown: `x & !m!(func)`
159+
160+ error: order comparisons between booleans can be simplified
161+ --> tests/ui/bool_comparison.rs:211:9
162+ |
163+ LL | x < m!(func)
164+ | ^^^^^^^^^^^^ help: try simplifying it as shown: `!x & m!(func)`
165+
166+ error: aborting due to 27 previous errors
155167
0 commit comments