|
1 | 1 | error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator
|
2 |
| - --> $DIR/xor_used_as_pow.rs:23:13 |
| 2 | + --> $DIR/xor_used_as_pow.rs:24:13 |
3 | 3 | |
|
4 | 4 | LL | let _ = 2 ^ 3;
|
5 | 5 | | ^^^^^ help: use a bitshift or constant instead: `1_u32 << 3`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::xor-used-as-pow` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: `^` is not an exponentiation operator but appears to have been used as one
|
10 |
| - --> $DIR/xor_used_as_pow.rs:24:13 |
| 10 | + --> $DIR/xor_used_as_pow.rs:25:13 |
11 | 11 | |
|
12 | 12 | LL | let _ = 10 ^ 4;
|
13 | 13 | | ^^^^^^
|
14 | 14 | |
|
15 | 15 | = help: did you mean to use .pow()?
|
16 | 16 |
|
17 | 17 | error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator
|
18 |
| - --> $DIR/xor_used_as_pow.rs:25:13 |
| 18 | + --> $DIR/xor_used_as_pow.rs:26:13 |
19 | 19 | |
|
20 | 20 | LL | let _ = 2 ^ 32;
|
21 | 21 | | ^^^^^^ help: use a bitshift or constant instead: `1_u64 << 32`
|
22 | 22 |
|
23 |
| -error: the operation is ineffective. Consider reducing it to `2` |
24 |
| - --> $DIR/xor_used_as_pow.rs:26:13 |
25 |
| - | |
26 |
| -LL | let _ = 2 ^ 0; |
27 |
| - | ^^^^^ |
28 |
| - | |
29 |
| - = note: `-D clippy::identity-op` implied by `-D warnings` |
30 |
| - |
31 | 23 | error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator
|
32 |
| - --> $DIR/xor_used_as_pow.rs:26:13 |
| 24 | + --> $DIR/xor_used_as_pow.rs:27:13 |
33 | 25 | |
|
34 | 26 | LL | let _ = 2 ^ 0;
|
35 | 27 | | ^^^^^ help: use a bitshift or constant instead: `1`
|
36 | 28 |
|
37 |
| -error: the operation is ineffective. Consider reducing it to `10` |
38 |
| - --> $DIR/xor_used_as_pow.rs:27:13 |
39 |
| - | |
40 |
| -LL | let _ = 10 ^ 0; |
41 |
| - | ^^^^^^ |
42 |
| - |
43 | 29 | error: `^` is not an exponentiation operator but appears to have been used as one
|
44 |
| - --> $DIR/xor_used_as_pow.rs:27:13 |
| 30 | + --> $DIR/xor_used_as_pow.rs:28:13 |
45 | 31 | |
|
46 | 32 | LL | let _ = 10 ^ 0;
|
47 | 33 | | ^^^^^^
|
48 | 34 | |
|
49 | 35 | = help: did you mean to use .pow()?
|
50 | 36 |
|
51 | 37 | error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator
|
52 |
| - --> $DIR/xor_used_as_pow.rs:30:17 |
| 38 | + --> $DIR/xor_used_as_pow.rs:31:17 |
53 | 39 | |
|
54 | 40 | LL | let _ = 2 ^ x;
|
55 | 41 | | ^^^^^ help: use a bitshift or constant instead: `1 << x`
|
56 | 42 |
|
57 | 43 | error: `^` is not an exponentiation operator but appears to have been used as one
|
58 |
| - --> $DIR/xor_used_as_pow.rs:31:17 |
| 44 | + --> $DIR/xor_used_as_pow.rs:32:17 |
59 | 45 | |
|
60 | 46 | LL | let _ = 10 ^ x;
|
61 | 47 | | ^^^^^^
|
62 | 48 | |
|
63 | 49 | = help: did you mean to use .pow()?
|
64 | 50 |
|
65 |
| -error: aborting due to 9 previous errors |
| 51 | +error: aborting due to 7 previous errors |
66 | 52 |
|
0 commit comments