|
1 | 1 | error: using `chunks_exact` with a constant chunk size |
2 | | - --> tests/ui/chunks_exact_with_const_size_unfixable.rs:9:32 |
| 2 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:10:24 |
| 3 | + | |
| 4 | +LL | let result = slice.chunks_exact(4); |
| 5 | + | ^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | +help: consider using `as_chunks::<4>()` instead |
| 8 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:10:24 |
| 9 | + | |
| 10 | +LL | let result = slice.chunks_exact(4); |
| 11 | + | ^^^^^^^^^^^^^^^ |
| 12 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 13 | + = note: `-D clippy::chunks-exact-with-const-size` implied by `-D warnings` |
| 14 | + = help: to override `-D warnings` add `#[allow(clippy::chunks_exact_with_const_size)]` |
| 15 | + |
| 16 | +error: using `chunks_exact` with a constant chunk size |
| 17 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:14:24 |
| 18 | + | |
| 19 | +LL | let result = slice.chunks_exact(CHUNK_SIZE); |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 21 | + | |
| 22 | +help: consider using `as_chunks::<CHUNK_SIZE>()` instead |
| 23 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:14:24 |
| 24 | + | |
| 25 | +LL | let result = slice.chunks_exact(CHUNK_SIZE); |
| 26 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 27 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 28 | + |
| 29 | +error: using `chunks_exact` with a constant chunk size |
| 30 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:18:24 |
| 31 | + | |
| 32 | +LL | let result = slice.chunks_exact(3); |
| 33 | + | ^^^^^^^^^^^^^^^ |
| 34 | + | |
| 35 | +help: consider using `as_chunks::<3>()` instead |
| 36 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:18:24 |
| 37 | + | |
| 38 | +LL | let result = slice.chunks_exact(3); |
| 39 | + | ^^^^^^^^^^^^^^^ |
| 40 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 41 | + |
| 42 | +error: using `chunks_exact_mut` with a constant chunk size |
| 43 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:23:22 |
| 44 | + | |
| 45 | +LL | let result = arr.chunks_exact_mut(4); |
| 46 | + | ^^^^^^^^^^^^^^^^^^^ |
| 47 | + | |
| 48 | +help: consider using `as_chunks_mut::<4>()` instead |
| 49 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:23:22 |
| 50 | + | |
| 51 | +LL | let result = arr.chunks_exact_mut(4); |
| 52 | + | ^^^^^^^^^^^^^^^^^^^ |
| 53 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 54 | + |
| 55 | +error: using `chunks_exact` with a constant chunk size |
| 56 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:32:10 |
| 57 | + | |
| 58 | +LL | .chunks_exact(2); |
| 59 | + | ^^^^^^^^^^^^^^^ |
| 60 | + | |
| 61 | +help: consider using `as_chunks::<2>()` instead |
| 62 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:32:10 |
| 63 | + | |
| 64 | +LL | .chunks_exact(2); |
| 65 | + | ^^^^^^^^^^^^^^^ |
| 66 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 67 | + |
| 68 | +error: using `chunks_exact` with a constant chunk size |
| 69 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:37:24 |
| 70 | + | |
| 71 | +LL | let result = array.chunks_exact(4); |
| 72 | + | ^^^^^^^^^^^^^^^ |
| 73 | + | |
| 74 | +help: consider using `as_chunks::<4>()` instead |
| 75 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:37:24 |
| 76 | + | |
| 77 | +LL | let result = array.chunks_exact(4); |
| 78 | + | ^^^^^^^^^^^^^^^ |
| 79 | + = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1` |
| 80 | + |
| 81 | +error: using `chunks_exact` with a constant chunk size |
| 82 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:41:32 |
3 | 83 | | |
4 | 84 | LL | let mut chunk_iter = slice.chunks_exact(CHUNK_SIZE); |
5 | 85 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | 86 | | |
7 | 87 | help: consider using `as_chunks::<CHUNK_SIZE>()` instead |
8 | | - --> tests/ui/chunks_exact_with_const_size_unfixable.rs:9:32 |
| 88 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:41:32 |
9 | 89 | | |
10 | 90 | LL | let mut chunk_iter = slice.chunks_exact(CHUNK_SIZE); |
11 | 91 | | ^^^^^^^^^^^^^^^^^^^^^^^^ |
12 | 92 | = note: you can access the chunks using `chunk_iter.0.iter()`, and the remainder using `chunk_iter.1` |
13 | | - = note: `-D clippy::chunks-exact-with-const-size` implied by `-D warnings` |
14 | | - = help: to override `-D warnings` add `#[allow(clippy::chunks_exact_with_const_size)]` |
15 | 93 |
|
16 | 94 | error: using `chunks_exact_mut` with a constant chunk size |
17 | | - --> tests/ui/chunks_exact_with_const_size_unfixable.rs:16:31 |
| 95 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:48:31 |
18 | 96 | | |
19 | 97 | LL | let mut chunk_iter = arr2.chunks_exact_mut(CHUNK_SIZE); |
20 | 98 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
21 | 99 | | |
22 | 100 | help: consider using `as_chunks_mut::<CHUNK_SIZE>()` instead |
23 | | - --> tests/ui/chunks_exact_with_const_size_unfixable.rs:16:31 |
| 101 | + --> tests/ui/chunks_exact_with_const_size_unfixable.rs:48:31 |
24 | 102 | | |
25 | 103 | LL | let mut chunk_iter = arr2.chunks_exact_mut(CHUNK_SIZE); |
26 | 104 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
27 | 105 | = note: you can access the chunks using `chunk_iter.0.iter()`, and the remainder using `chunk_iter.1` |
28 | 106 |
|
29 | | -error: aborting due to 2 previous errors |
| 107 | +error: aborting due to 8 previous errors |
30 | 108 |
|
0 commit comments