@@ -16,7 +16,7 @@ error: it looks like you're manually copying between slices
16
16
--> $DIR/manual_memcpy.rs:17:14
17
17
|
18
18
LL | for i in 0..src.len() {
19
- | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..])`
19
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..(src.len() + 10) ])`
20
20
21
21
error: it looks like you're manually copying between slices
22
22
--> $DIR/manual_memcpy.rs:22:14
@@ -79,10 +79,64 @@ LL | for i in 0..0 {
79
79
| ^^^^ help: try replacing the loop by: `dst[..0].clone_from_slice(&src[..0])`
80
80
81
81
error: it looks like you're manually copying between slices
82
- --> $DIR/manual_memcpy.rs:120:14
82
+ --> $DIR/manual_memcpy.rs:121:14
83
+ |
84
+ LL | for i in 3..src.len() {
85
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..src.len()].clone_from_slice(&src[..(src.len() - 3)])`
86
+
87
+ error: it looks like you're manually copying between slices
88
+ --> $DIR/manual_memcpy.rs:127:14
89
+ |
90
+ LL | for i in 3..src.len() {
91
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..(src.len() - 3)].clone_from_slice(&src[3..])`
92
+
93
+ error: it looks like you're manually copying between slices
94
+ --> $DIR/manual_memcpy.rs:133:14
95
+ |
96
+ LL | for i in 0..src.len() {
97
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..(src.len() + 3)].clone_from_slice(&src[..])`
98
+
99
+ error: it looks like you're manually copying between slices
100
+ --> $DIR/manual_memcpy.rs:139:14
101
+ |
102
+ LL | for i in 0..src.len() {
103
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[3..(src.len() + 3)])`
104
+
105
+ error: it looks like you're manually copying between slices
106
+ --> $DIR/manual_memcpy.rs:145:14
107
+ |
108
+ LL | for i in 3..(3 + src.len()) {
109
+ | ^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..(3 + src.len())].clone_from_slice(&src[..((3 + src.len()) - 3)])`
110
+
111
+ error: it looks like you're manually copying between slices
112
+ --> $DIR/manual_memcpy.rs:151:14
113
+ |
114
+ LL | for i in 5..src.len() {
115
+ | ^^^^^^^^^^^^ help: try replacing the loop by: `dst[5..src.len()].clone_from_slice(&src[(3 - 2)..((src.len() - 2) + 3 - 5)])`
116
+
117
+ error: it looks like you're manually copying between slices
118
+ --> $DIR/manual_memcpy.rs:157:14
119
+ |
120
+ LL | for i in 3..10 {
121
+ | ^^^^^ help: try replacing the loop by: `dst[3..10].clone_from_slice(&src[5..(10 + 5 - 3)])`
122
+
123
+ error: it looks like you're manually copying between slices
124
+ --> $DIR/manual_memcpy.rs:164:14
125
+ |
126
+ LL | for i in 0..src.len() {
127
+ | ^^^^^^^^^^^^
128
+ |
129
+ help: try replacing the loop by
130
+ |
131
+ LL | for i in dst[3..(src.len() + 3)].clone_from_slice(&src[..])
132
+ LL | dst2[30..(src.len() + 30)].clone_from_slice(&src[..]) {
133
+ |
134
+
135
+ error: it looks like you're manually copying between slices
136
+ --> $DIR/manual_memcpy.rs:174:14
83
137
|
84
138
LL | for i in 0..src.len() {
85
139
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
86
140
87
- error: aborting due to 13 previous errors
141
+ error: aborting due to 21 previous errors
88
142
0 commit comments