|
1 | | -error: manually reimplementing `bit_width` |
2 | | - --> tests/ui/manual_bit_width.rs:10:13 |
| 1 | +error: manual implementation of `bit_width` |
| 2 | + --> tests/ui/manual_bit_width.rs:7:13 |
3 | 3 | | |
4 | 4 | LL | let _ = u8::BITS - x.leading_zeros(); |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.bit_width()` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::manual-bit-width` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::manual_bit_width)]` |
9 | 9 |
|
10 | | -error: manually reimplementing `bit_width` |
11 | | - --> tests/ui/manual_bit_width.rs:11:13 |
| 10 | +error: manual implementation of `bit_width` |
| 11 | + --> tests/ui/manual_bit_width.rs:8:13 |
12 | 12 | | |
13 | 13 | LL | let _ = u16::BITS - x.leading_zeros(); |
14 | 14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.bit_width()` |
15 | 15 |
|
16 | | -error: manually reimplementing `bit_width` |
17 | | - --> tests/ui/manual_bit_width.rs:12:13 |
| 16 | +error: manual implementation of `bit_width` |
| 17 | + --> tests/ui/manual_bit_width.rs:9:13 |
18 | 18 | | |
19 | 19 | LL | let _ = u32::BITS - x.leading_zeros(); |
20 | 20 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.bit_width()` |
21 | 21 |
|
22 | | -error: manually reimplementing `bit_width` |
23 | | - --> tests/ui/manual_bit_width.rs:13:13 |
| 22 | +error: manual implementation of `bit_width` |
| 23 | + --> tests/ui/manual_bit_width.rs:10:13 |
24 | 24 | | |
25 | 25 | LL | let _ = u64::BITS - x.leading_zeros(); |
26 | 26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.bit_width()` |
27 | 27 |
|
28 | | -error: manually reimplementing `bit_width` |
29 | | - --> tests/ui/manual_bit_width.rs:14:13 |
| 28 | +error: manual implementation of `bit_width` |
| 29 | + --> tests/ui/manual_bit_width.rs:11:13 |
30 | 30 | | |
31 | 31 | LL | let _ = usize::BITS - x.leading_zeros(); |
32 | 32 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.bit_width()` |
|
0 commit comments