2017-02-07 21:05:30 +01:00
|
|
|
error: equality checks against true are unnecessary
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:13:8
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
13 | if x == true {
|
2018-10-06 09:18:06 -07:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::bool-comparison` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: equality checks against false can be replaced by a negation
|
2018-10-06 09:18:06 -07:00
|
|
|
--> $DIR/bool_comparison.rs:18:8
|
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
18 | if x == false {
|
2018-10-06 09:18:06 -07:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: equality checks against true are unnecessary
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:23:8
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
23 | if true == x {
|
2018-10-06 09:18:06 -07:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: equality checks against false can be replaced by a negation
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:28:8
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
28 | if false == x {
|
2017-07-24 16:28:41 +02:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-11-30 10:21:11 -03:00
|
|
|
error: inequality checks against true can be replaced by a negation
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:33:8
|
2018-11-30 10:21:11 -03:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
33 | if x != true {
|
2018-11-30 10:21:11 -03:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:38:8
|
2018-11-30 10:21:11 -03:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
38 | if x != false {
|
2018-11-30 10:21:11 -03:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: inequality checks against true can be replaced by a negation
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:43:8
|
2018-11-30 10:21:11 -03:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
43 | if true != x {
|
2018-11-30 10:21:11 -03:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/bool_comparison.rs:48:8
|
2018-11-30 10:21:11 -03:00
|
|
|
|
|
2018-12-10 06:27:19 +01:00
|
|
|
48 | if false != x {
|
2018-11-30 10:21:11 -03:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|