1 error: this if-then-else expression returns a bool literal
2 --> $DIR/fixable.rs:40:5
9 | |_____^ help: you can reduce it to: `x`
11 = note: `-D clippy::needless-bool` implied by `-D warnings`
13 error: this if-then-else expression returns a bool literal
14 --> $DIR/fixable.rs:45:5
21 | |_____^ help: you can reduce it to: `!x`
23 error: this if-then-else expression returns a bool literal
24 --> $DIR/fixable.rs:50:5
31 | |_____^ help: you can reduce it to: `!(x && y)`
33 error: this if-then-else expression returns a bool literal
34 --> $DIR/fixable.rs:70:5
41 | |_____^ help: you can reduce it to: `return x`
43 error: this if-then-else expression returns a bool literal
44 --> $DIR/fixable.rs:78:5
51 | |_____^ help: you can reduce it to: `return !x`
53 error: this if-then-else expression returns a bool literal
54 --> $DIR/fixable.rs:86:5
61 | |_____^ help: you can reduce it to: `return x && y`
63 error: this if-then-else expression returns a bool literal
64 --> $DIR/fixable.rs:94:5
71 | |_____^ help: you can reduce it to: `return !(x && y)`
73 error: equality checks against true are unnecessary
74 --> $DIR/fixable.rs:102:8
77 | ^^^^^^^^^ help: try simplifying it as shown: `x`
79 = note: `-D clippy::bool-comparison` implied by `-D warnings`
81 error: equality checks against false can be replaced by a negation
82 --> $DIR/fixable.rs:106:8
84 LL | if x == false {};
85 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
87 error: equality checks against true are unnecessary
88 --> $DIR/fixable.rs:116:8
91 | ^^^^^^^^^ help: try simplifying it as shown: `x`
93 error: equality checks against false can be replaced by a negation
94 --> $DIR/fixable.rs:117:8
96 LL | if x == false {};
97 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
99 error: this if-then-else expression returns a bool literal
100 --> $DIR/fixable.rs:126:12
102 LL | } else if returns_bool() {
108 | |_____^ help: you can reduce it to: `{ !returns_bool() }`
110 error: aborting due to 12 previous errors