|
1 | 1 | error: this boolean expression contains a logic bug
|
2 |
| - --> $DIR/logic_bug.rs:10:13 |
| 2 | + --> $DIR/logic_bug.rs:11:13 |
3 | 3 | |
|
4 | 4 | LL | let _ = a && b || a;
|
5 | 5 | | ^^^^^^^^^^^ help: it would look like the following: `a`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::logic-bug` implied by `-D warnings`
|
8 | 8 | help: this expression can be optimized out by applying boolean operations to the outer expression
|
9 |
| - --> $DIR/logic_bug.rs:10:18 |
| 9 | + --> $DIR/logic_bug.rs:11:18 |
10 | 10 | |
|
11 | 11 | LL | let _ = a && b || a;
|
12 | 12 | | ^
|
13 | 13 |
|
14 | 14 | error: this boolean expression contains a logic bug
|
15 |
| - --> $DIR/logic_bug.rs:12:13 |
| 15 | + --> $DIR/logic_bug.rs:13:13 |
16 | 16 | |
|
17 | 17 | LL | let _ = false && a;
|
18 | 18 | | ^^^^^^^^^^ help: it would look like the following: `false`
|
19 | 19 | |
|
20 | 20 | help: this expression can be optimized out by applying boolean operations to the outer expression
|
21 |
| - --> $DIR/logic_bug.rs:12:22 |
| 21 | + --> $DIR/logic_bug.rs:13:22 |
22 | 22 | |
|
23 | 23 | LL | let _ = false && a;
|
24 | 24 | | ^
|
25 | 25 |
|
26 | 26 | error: this boolean expression contains a logic bug
|
27 |
| - --> $DIR/logic_bug.rs:22:13 |
| 27 | + --> $DIR/logic_bug.rs:23:13 |
28 | 28 | |
|
29 | 29 | LL | let _ = a == b && a != b;
|
30 | 30 | | ^^^^^^^^^^^^^^^^ help: it would look like the following: `false`
|
31 | 31 | |
|
32 | 32 | help: this expression can be optimized out by applying boolean operations to the outer expression
|
33 |
| - --> $DIR/logic_bug.rs:22:13 |
| 33 | + --> $DIR/logic_bug.rs:23:13 |
34 | 34 | |
|
35 | 35 | LL | let _ = a == b && a != b;
|
36 | 36 | | ^^^^^^
|
37 | 37 |
|
38 | 38 | error: this boolean expression contains a logic bug
|
39 |
| - --> $DIR/logic_bug.rs:23:13 |
| 39 | + --> $DIR/logic_bug.rs:24:13 |
40 | 40 | |
|
41 | 41 | LL | let _ = a < b && a >= b;
|
42 | 42 | | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
|
43 | 43 | |
|
44 | 44 | help: this expression can be optimized out by applying boolean operations to the outer expression
|
45 |
| - --> $DIR/logic_bug.rs:23:13 |
| 45 | + --> $DIR/logic_bug.rs:24:13 |
46 | 46 | |
|
47 | 47 | LL | let _ = a < b && a >= b;
|
48 | 48 | | ^^^^^
|
49 | 49 |
|
50 | 50 | error: this boolean expression contains a logic bug
|
51 |
| - --> $DIR/logic_bug.rs:24:13 |
| 51 | + --> $DIR/logic_bug.rs:25:13 |
52 | 52 | |
|
53 | 53 | LL | let _ = a > b && a <= b;
|
54 | 54 | | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
|
55 | 55 | |
|
56 | 56 | help: this expression can be optimized out by applying boolean operations to the outer expression
|
57 |
| - --> $DIR/logic_bug.rs:24:13 |
| 57 | + --> $DIR/logic_bug.rs:25:13 |
58 | 58 | |
|
59 | 59 | LL | let _ = a > b && a <= b;
|
60 | 60 | | ^^^^^
|
|
0 commit comments