2017-02-07 21:05:30 +01:00
|
|
|
error: equality checks against true are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:6:8
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x == true {
|
2018-10-06 18:18:06 +02: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
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:11:8
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x == false {
|
2018-10-06 18:18:06 +02:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: equality checks against true are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:16:8
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if true == x {
|
2018-10-06 18:18:06 +02: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
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:21:8
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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 14:21:11 +01:00
|
|
|
error: inequality checks against true can be replaced by a negation
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:26:8
|
2018-11-30 14:21:11 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x != true {
|
2018-11-30 14:21:11 +01:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:31:8
|
2018-11-30 14:21:11 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x != false {
|
2018-11-30 14:21:11 +01:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: inequality checks against true can be replaced by a negation
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:36:8
|
2018-11-30 14:21:11 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if true != x {
|
2018-11-30 14:21:11 +01:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:41:8
|
2018-11-30 14:21:11 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if false != x {
|
2018-11-30 14:21:11 +01:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
2018-12-07 01:50:16 +01:00
|
|
|
error: less than comparison against true can be replaced by a negation
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:46:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x < true {
|
2018-12-07 01:50:16 +01:00
|
|
|
| ^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: greater than checks against false are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:51:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if false < x {
|
2018-12-07 01:50:16 +01:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: greater than checks against false are unnecessary
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:56:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x > false {
|
2018-12-07 01:50:16 +01:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: less than comparison against true can be replaced by a negation
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:61:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if true > x {
|
2018-12-07 01:50:16 +01:00
|
|
|
| ^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: order comparisons between booleans can be simplified
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:67:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x < y {
|
2018-12-17 19:32:24 +01:00
|
|
|
| ^^^^^ help: try simplifying it as shown: `!x & y`
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
|
|
error: order comparisons between booleans can be simplified
|
2019-04-16 20:42:54 +02:00
|
|
|
--> $DIR/bool_comparison.rs:72:8
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | if x > y {
|
2018-12-17 19:32:24 +01:00
|
|
|
| ^^^^^ help: try simplifying it as shown: `x & !y`
|
2018-12-07 01:50:16 +01:00
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|