]> git.lizzy.rs Git - rust.git/blob - tests/ui/bool_comparison.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / bool_comparison.stderr
1 error: equality checks against true are unnecessary
2   --> $DIR/bool_comparison.rs:13:8
3    |
4 13 |     if x == true {
5    |        ^^^^^^^^^ help: try simplifying it as shown: `x`
6    |
7    = note: `-D clippy::bool-comparison` implied by `-D warnings`
8
9 error: equality checks against false can be replaced by a negation
10   --> $DIR/bool_comparison.rs:18:8
11    |
12 18 |     if x == false {
13    |        ^^^^^^^^^^ help: try simplifying it as shown: `!x`
14
15 error: equality checks against true are unnecessary
16   --> $DIR/bool_comparison.rs:23:8
17    |
18 23 |     if true == x {
19    |        ^^^^^^^^^ help: try simplifying it as shown: `x`
20
21 error: equality checks against false can be replaced by a negation
22   --> $DIR/bool_comparison.rs:28:8
23    |
24 28 |     if false == x {
25    |        ^^^^^^^^^^ help: try simplifying it as shown: `!x`
26
27 error: inequality checks against true can be replaced by a negation
28   --> $DIR/bool_comparison.rs:33:8
29    |
30 33 |     if x != true {
31    |        ^^^^^^^^^ help: try simplifying it as shown: `!x`
32
33 error: inequality checks against false are unnecessary
34   --> $DIR/bool_comparison.rs:38:8
35    |
36 38 |     if x != false {
37    |        ^^^^^^^^^^ help: try simplifying it as shown: `x`
38
39 error: inequality checks against true can be replaced by a negation
40   --> $DIR/bool_comparison.rs:43:8
41    |
42 43 |     if true != x {
43    |        ^^^^^^^^^ help: try simplifying it as shown: `!x`
44
45 error: inequality checks against false are unnecessary
46   --> $DIR/bool_comparison.rs:48:8
47    |
48 48 |     if false != x {
49    |        ^^^^^^^^^^ help: try simplifying it as shown: `x`
50
51 error: aborting due to 8 previous errors
52