2017-02-07 14:05:30 -06:00
|
|
|
error: equality checks against true are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:8:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == true {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::bool-comparison` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: equality checks against false can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:13:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == false {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: equality checks against true are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:18:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if true == x {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: equality checks against false can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:23:8
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if false == x {
|
2017-07-24 09:28:41 -05:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-11-30 07:21:11 -06:00
|
|
|
error: inequality checks against true can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:28:8
|
2018-11-30 07:21:11 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x != true {
|
2018-11-30 07:21:11 -06:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:33:8
|
2018-11-30 07:21:11 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x != false {
|
2018-11-30 07:21:11 -06:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: inequality checks against true can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:38:8
|
2018-11-30 07:21:11 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if true != x {
|
2018-11-30 07:21:11 -06:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: inequality checks against false are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:43:8
|
2018-11-30 07:21:11 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if false != x {
|
2018-11-30 07:21:11 -06:00
|
|
|
| ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
2018-12-06 18:50:16 -06:00
|
|
|
error: less than comparison against true can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:48:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < true {
|
2018-12-06 18:50:16 -06:00
|
|
|
| ^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: greater than checks against false are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:53:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if false < x {
|
2018-12-06 18:50:16 -06:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: greater than checks against false are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:58:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > false {
|
2018-12-06 18:50:16 -06:00
|
|
|
| ^^^^^^^^^ help: try simplifying it as shown: `x`
|
|
|
|
|
|
|
|
error: less than comparison against true can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:63:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if true > x {
|
2018-12-06 18:50:16 -06:00
|
|
|
| ^^^^^^^^ help: try simplifying it as shown: `!x`
|
|
|
|
|
|
|
|
error: order comparisons between booleans can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:69:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < y {
|
2018-12-17 12:32:24 -06:00
|
|
|
| ^^^^^ help: try simplifying it as shown: `!x & y`
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
|
|
error: order comparisons between booleans can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:74:8
|
2018-12-06 18:50:16 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > y {
|
2018-12-17 12:32:24 -06:00
|
|
|
| ^^^^^ help: try simplifying it as shown: `x & !y`
|
2018-12-06 18:50:16 -06:00
|
|
|
|
2020-07-23 08:14:12 -05:00
|
|
|
error: this comparison might be written more concisely
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:122:8
|
2020-03-23 14:29:12 -05:00
|
|
|
|
|
|
|
|
LL | if a == !b {};
|
2020-03-23 15:00:02 -05:00
|
|
|
| ^^^^^^^ help: try simplifying it as shown: `a != b`
|
2020-03-23 14:29:12 -05:00
|
|
|
|
2020-07-23 08:14:12 -05:00
|
|
|
error: this comparison might be written more concisely
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:123:8
|
2020-03-23 14:29:12 -05:00
|
|
|
|
|
|
|
|
LL | if !a == b {};
|
2020-03-23 15:00:02 -05:00
|
|
|
| ^^^^^^^ help: try simplifying it as shown: `a != b`
|
2020-03-23 14:29:12 -05:00
|
|
|
|
2020-07-23 08:14:12 -05:00
|
|
|
error: this comparison might be written more concisely
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:127:8
|
2020-03-23 15:21:18 -05:00
|
|
|
|
|
|
|
|
LL | if b == !a {};
|
|
|
|
| ^^^^^^^ help: try simplifying it as shown: `b != a`
|
|
|
|
|
2020-07-23 08:14:12 -05:00
|
|
|
error: this comparison might be written more concisely
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:128:8
|
2020-03-23 15:21:18 -05:00
|
|
|
|
|
|
|
|
LL | if !b == a {};
|
|
|
|
| ^^^^^^^ help: try simplifying it as shown: `b != a`
|
|
|
|
|
2020-10-24 02:31:32 -05:00
|
|
|
error: equality checks against false can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:152:8
|
2020-10-24 02:31:32 -05:00
|
|
|
|
|
|
|
|
LL | if false == m!(func) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
|
|
|
|
|
|
|
|
error: equality checks against false can be replaced by a negation
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:153:8
|
2020-10-24 02:31:32 -05:00
|
|
|
|
|
|
|
|
LL | if m!(func) == false {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
|
|
|
|
|
|
|
|
error: equality checks against true are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:154:8
|
2020-10-24 02:31:32 -05:00
|
|
|
|
|
|
|
|
LL | if true == m!(func) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
|
|
|
|
|
|
|
|
error: equality checks against true are unnecessary
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/bool_comparison.rs:155:8
|
2020-10-24 02:31:32 -05:00
|
|
|
|
|
|
|
|
LL | if m!(func) == true {}
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
|
|
|
|
|
|
|
|
error: aborting due to 22 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|