@@ -57,14 +57,23 @@ LL | | }
5757error: it looks like you're manually copying between slices
5858 --> $DIR/with_loop_counters.rs:41:5
5959 |
60+ LL | / for i in 0..dst.len() {
61+ LL | | dst[i] = src[count];
62+ LL | | count += 1;
63+ LL | | }
64+ | |_____^ help: try replacing the loop by: `dst.clone_from_slice(&src[2..(dst.len() + 2)]);`
65+
66+ error: it looks like you're manually copying between slices
67+ --> $DIR/with_loop_counters.rs:47:5
68+ |
6069LL | / for i in 3..10 {
6170LL | | dst[i] = src[count];
6271LL | | count += 1;
6372LL | | }
6473 | |_____^ help: try replacing the loop by: `dst[3..10].clone_from_slice(&src[5..(10 + 5 - 3)]);`
6574
6675error: it looks like you're manually copying between slices
67- --> $DIR/with_loop_counters.rs:48 :5
76+ --> $DIR/with_loop_counters.rs:54 :5
6877 |
6978LL | / for i in 0..src.len() {
7079LL | | dst[count] = src[i];
@@ -81,7 +90,7 @@ LL | dst2[30..(src.len() + 30)].clone_from_slice(&src[..]);
8190 |
8291
8392error: it looks like you're manually copying between slices
84- --> $DIR/with_loop_counters.rs:58 :5
93+ --> $DIR/with_loop_counters.rs:64 :5
8594 |
8695LL | / for i in 0..1 << 1 {
8796LL | | dst[count] = src[i + 2];
@@ -90,13 +99,13 @@ LL | | }
9099 | |_____^ help: try replacing the loop by: `dst[(0 << 1)..((1 << 1) + (0 << 1))].clone_from_slice(&src[2..((1 << 1) + 2)]);`
91100
92101error: it looks like you're manually copying between slices
93- --> $DIR/with_loop_counters.rs:65 :5
102+ --> $DIR/with_loop_counters.rs:71 :5
94103 |
95104LL | / for i in 3..src.len() {
96105LL | | dst[i] = src[count];
97106LL | | count += 1
98107LL | | }
99108 | |_____^ help: try replacing the loop by: `dst[3..src.len()].clone_from_slice(&src[..(src.len() - 3)]);`
100109
101- error: aborting due to 10 previous errors
110+ error: aborting due to 11 previous errors
102111
0 commit comments