@@ -18,114 +18,146 @@ LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x
1818error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
1919 --> $DIR/unsafe_sizeof_count_copies.rs:17:14
2020 |
21+ LL | unsafe { x.as_ptr().copy_to(y.as_mut_ptr(), size_of::<u8>()) };
22+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+ |
24+ = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
25+
26+ error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
27+ --> $DIR/unsafe_sizeof_count_copies.rs:18:14
28+ |
29+ LL | unsafe { x.as_ptr().copy_to_nonoverlapping(y.as_mut_ptr(), size_of::<u8>()) };
30+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+ |
32+ = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
33+
34+ error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
35+ --> $DIR/unsafe_sizeof_count_copies.rs:19:14
36+ |
37+ LL | unsafe { y.as_mut_ptr().copy_from(x.as_ptr(), size_of::<u8>()) };
38+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+ |
40+ = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
41+
42+ error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
43+ --> $DIR/unsafe_sizeof_count_copies.rs:20:14
44+ |
45+ LL | unsafe { y.as_mut_ptr().copy_from_nonoverlapping(x.as_ptr(), size_of::<u8>()) };
46+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47+ |
48+ = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
49+
50+ error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
51+ --> $DIR/unsafe_sizeof_count_copies.rs:22:14
52+ |
2153LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>()) };
2254 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2355 |
2456 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
2557
2658error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
27- --> $DIR/unsafe_sizeof_count_copies.rs:18 :14
59+ --> $DIR/unsafe_sizeof_count_copies.rs:23 :14
2860 |
2961LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0])) };
3062 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3163 |
3264 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
3365
3466error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
35- --> $DIR/unsafe_sizeof_count_copies.rs:21 :14
67+ --> $DIR/unsafe_sizeof_count_copies.rs:26 :14
3668 |
3769LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * SIZE) };
3870 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3971 |
4072 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
4173
4274error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
43- --> $DIR/unsafe_sizeof_count_copies.rs:22 :14
75+ --> $DIR/unsafe_sizeof_count_copies.rs:27 :14
4476 |
4577LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * SIZE) };
4678 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4779 |
4880 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
4981
5082error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
51- --> $DIR/unsafe_sizeof_count_copies.rs:24 :14
83+ --> $DIR/unsafe_sizeof_count_copies.rs:29 :14
5284 |
5385LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * SIZE) };
5486 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5587 |
5688 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
5789
5890error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
59- --> $DIR/unsafe_sizeof_count_copies.rs:25 :14
91+ --> $DIR/unsafe_sizeof_count_copies.rs:30 :14
6092 |
6193LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * SIZE) };
6294 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6395 |
6496 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
6597
6698error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
67- --> $DIR/unsafe_sizeof_count_copies.rs:28 :14
99+ --> $DIR/unsafe_sizeof_count_copies.rs:33 :14
68100 |
69101LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * HALF_SIZE * 2) };
70102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71103 |
72104 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
73105
74106error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
75- --> $DIR/unsafe_sizeof_count_copies.rs:29 :14
107+ --> $DIR/unsafe_sizeof_count_copies.rs:34 :14
76108 |
77109LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), HALF_SIZE * size_of_val(&x[0]) * 2) };
78110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79111 |
80112 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
81113
82114error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
83- --> $DIR/unsafe_sizeof_count_copies.rs:31 :14
115+ --> $DIR/unsafe_sizeof_count_copies.rs:36 :14
84116 |
85117LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * SIZE * HALF_SIZE) };
86118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87119 |
88120 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
89121
90122error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
91- --> $DIR/unsafe_sizeof_count_copies.rs:32 :14
123+ --> $DIR/unsafe_sizeof_count_copies.rs:37 :14
92124 |
93125LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * HALF_SIZE * 2) };
94126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95127 |
96128 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
97129
98130error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
99- --> $DIR/unsafe_sizeof_count_copies.rs:35 :14
131+ --> $DIR/unsafe_sizeof_count_copies.rs:40 :14
100132 |
101133LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * DOUBLE_SIZE / 2) };
102134 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103135 |
104136 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
105137
106138error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
107- --> $DIR/unsafe_sizeof_count_copies.rs:36 :14
139+ --> $DIR/unsafe_sizeof_count_copies.rs:41 :14
108140 |
109141LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), DOUBLE_SIZE / 2 * size_of_val(&x[0])) };
110142 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111143 |
112144 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
113145
114146error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
115- --> $DIR/unsafe_sizeof_count_copies.rs:38 :14
147+ --> $DIR/unsafe_sizeof_count_copies.rs:43 :14
116148 |
117149LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), DOUBLE_SIZE * size_of::<u8>() / 2) };
118150 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119151 |
120152 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
121153
122154error: unsafe memory copying using a byte count (Multiplied by size_of::<T>) instead of a count of T
123- --> $DIR/unsafe_sizeof_count_copies.rs:39 :14
155+ --> $DIR/unsafe_sizeof_count_copies.rs:44 :14
124156 |
125157LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * DOUBLE_SIZE / 2) };
126158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127159 |
128160 = help: use a count of elements instead of a count of bytes for the count parameter, it already gets multiplied by the size of the pointed to type
129161
130- error: aborting due to 16 previous errors
162+ error: aborting due to 20 previous errors
131163
0 commit comments