2019-03-14 06:26:47 +00:00
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:7:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-memcpy` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:12:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[10..(src.len() + 10)].clone_from_slice(&src[..])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:17:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
2020-06-10 23:19:44 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..(src.len() + 10)])`
|
2019-03-14 06:26:47 +00:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:22:14
|
|
|
|
|
|
|
|
|
LL | for i in 11..src.len() {
|
|
|
|
| ^^^^^^^^^^^^^ help: try replacing the loop by: `dst[11..src.len()].clone_from_slice(&src[(11 - 10)..(src.len() - 10)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:27:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..dst.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..dst.len()])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:40:14
|
|
|
|
|
|
|
|
|
LL | for i in 10..256 {
|
|
|
|
| ^^^^^^^
|
2019-10-26 19:53:42 +00:00
|
|
|
|
|
2019-03-14 06:26:47 +00:00
|
|
|
help: try replacing the loop by
|
|
|
|
|
|
|
|
|
LL | for i in dst[10..256].clone_from_slice(&src[(10 - 5)..(256 - 5)])
|
|
|
|
LL | dst2[(10 + 500)..(256 + 500)].clone_from_slice(&src[10..256]) {
|
|
|
|
|
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:52:14
|
|
|
|
|
|
|
|
|
LL | for i in 10..LOOP_OFFSET {
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[(10 + LOOP_OFFSET)..(LOOP_OFFSET + LOOP_OFFSET)].clone_from_slice(&src[(10 - some_var)..(LOOP_OFFSET - some_var)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:65:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..src_vec.len() {
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst_vec[..src_vec.len()].clone_from_slice(&src_vec[..])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:94:14
|
|
|
|
|
|
|
|
|
LL | for i in from..from + src.len() {
|
2020-06-17 22:48:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..(from + src.len())].clone_from_slice(&src[..(from + src.len() - from)])`
|
2019-03-14 06:26:47 +00:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:98:14
|
|
|
|
|
|
|
|
|
LL | for i in from..from + 3 {
|
2020-06-17 22:48:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..(from + 3)].clone_from_slice(&src[..(from + 3 - from)])`
|
2019-03-14 06:26:47 +00:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-04-30 05:32:37 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:103:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..5 {
|
|
|
|
| ^^^^ help: try replacing the loop by: `dst[..5].clone_from_slice(&src[..5])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
|
|
|
--> $DIR/manual_memcpy.rs:108:14
|
|
|
|
|
|
|
|
|
LL | for i in 0..0 {
|
|
|
|
| ^^^^ help: try replacing the loop by: `dst[..0].clone_from_slice(&src[..0])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:120:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 3..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..src.len()].clone_from_slice(&src[..(src.len() - 3)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:126:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 3..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..(src.len() - 3)].clone_from_slice(&src[3..])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:132:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..(src.len() + 3)].clone_from_slice(&src[..])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:138:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[3..(src.len() + 3)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:144:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 3..(3 + src.len()) {
|
2020-06-17 22:48:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..((3 + src.len()))].clone_from_slice(&src[..((3 + src.len()) - 3)])`
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:150:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 5..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[5..src.len()].clone_from_slice(&src[(3 - 2)..((src.len() - 2) + 3 - 5)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:156:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 3..10 {
|
|
|
|
| ^^^^^ help: try replacing the loop by: `dst[3..10].clone_from_slice(&src[5..(10 + 5 - 3)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:163:14
|
2020-06-10 23:19:44 +00:00
|
|
|
|
|
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try replacing the loop by
|
|
|
|
|
|
|
|
|
LL | for i in dst[3..(src.len() + 3)].clone_from_slice(&src[..])
|
|
|
|
LL | dst2[30..(src.len() + 30)].clone_from_slice(&src[..]) {
|
|
|
|
|
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:173:14
|
2019-03-14 06:26:47 +00:00
|
|
|
|
|
2020-06-18 00:31:13 +00:00
|
|
|
LL | for i in 0..1 << 1 {
|
|
|
|
| ^^^^^^^^^ help: try replacing the loop by: `dst[(0 << 1)..((1 << 1) + (0 << 1))].clone_from_slice(&src[2..((1 << 1) + 2)])`
|
|
|
|
|
|
|
|
error: it looks like you're manually copying between slices
|
2020-09-27 01:52:06 +00:00
|
|
|
--> $DIR/manual_memcpy.rs:181:14
|
2020-06-18 00:31:13 +00:00
|
|
|
|
|
2019-03-14 06:26:47 +00:00
|
|
|
LL | for i in 0..src.len() {
|
|
|
|
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
|
|
|
|
|
2020-06-18 00:31:13 +00:00
|
|
|
error: aborting due to 22 previous errors
|
2019-03-14 06:26:47 +00:00
|
|
|
|