Skip to content

Commit 9aad38b

Browse files
committed
Update manual_memcpy.stderr to reflect additional parentheses
1 parent 774e82a commit 9aad38b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/manual_memcpy.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ error: it looks like you're manually copying between slices
5858
--> $DIR/manual_memcpy.rs:94:14
5959
|
6060
LL | for i in from..from + src.len() {
61-
| ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[..(from + src.len() - from)])`
61+
| ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..(from + src.len())].clone_from_slice(&src[..(from + src.len() - from)])`
6262

6363
error: it looks like you're manually copying between slices
6464
--> $DIR/manual_memcpy.rs:98:14
6565
|
6666
LL | for i in from..from + 3 {
67-
| ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[..(from + 3 - from)])`
67+
| ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..(from + 3)].clone_from_slice(&src[..(from + 3 - from)])`
6868

6969
error: it looks like you're manually copying between slices
7070
--> $DIR/manual_memcpy.rs:103:14
@@ -106,7 +106,7 @@ error: it looks like you're manually copying between slices
106106
--> $DIR/manual_memcpy.rs:145:14
107107
|
108108
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)])`
109+
| ^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[3..((3 + src.len()))].clone_from_slice(&src[..((3 + src.len()) - 3)])`
110110

111111
error: it looks like you're manually copying between slices
112112
--> $DIR/manual_memcpy.rs:151:14

0 commit comments

Comments
 (0)