@@ -111,93 +111,21 @@ LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>(
111
111
|
112
112
= 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
113
113
114
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
115
- --> $DIR/unsafe_sizeof_count_copies.rs:37:14
116
- |
117
- LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * SIZE) };
118
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
- |
120
- = 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
121
-
122
114
error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
123
115
--> $DIR/unsafe_sizeof_count_copies.rs:39:14
124
116
|
125
- LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * SIZE) };
126
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127
- |
128
- = 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
129
-
130
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
131
- --> $DIR/unsafe_sizeof_count_copies.rs:40:14
132
- |
133
- LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * SIZE) };
134
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
135
- |
136
- = 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
137
-
138
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
139
- --> $DIR/unsafe_sizeof_count_copies.rs:43:14
140
- |
141
- LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * HALF_SIZE * 2) };
142
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143
- |
144
- = 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
145
-
146
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
147
- --> $DIR/unsafe_sizeof_count_copies.rs:44:14
148
- |
149
117
LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), HALF_SIZE * size_of_val(&x[0]) * 2) };
150
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151
119
|
152
120
= 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
153
121
154
122
error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
155
- --> $DIR/unsafe_sizeof_count_copies.rs:46:14
156
- |
157
- LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * SIZE * HALF_SIZE) };
158
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159
- |
160
- = 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
161
-
162
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
163
- --> $DIR/unsafe_sizeof_count_copies.rs:47:14
164
- |
165
- LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * HALF_SIZE * 2) };
166
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
- |
168
- = 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
169
-
170
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
171
- --> $DIR/unsafe_sizeof_count_copies.rs:50:14
172
- |
173
- LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), size_of::<u8>() * DOUBLE_SIZE / 2) };
174
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
175
- |
176
- = 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
177
-
178
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
179
- --> $DIR/unsafe_sizeof_count_copies.rs:51:14
180
- |
181
- LL | unsafe { copy_nonoverlapping(x.as_ptr(), y.as_mut_ptr(), DOUBLE_SIZE / 2 * size_of_val(&x[0])) };
182
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
183
- |
184
- = 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
185
-
186
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
187
- --> $DIR/unsafe_sizeof_count_copies.rs:53:14
123
+ --> $DIR/unsafe_sizeof_count_copies.rs:42:14
188
124
|
189
125
LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), DOUBLE_SIZE * size_of::<u8>() / 2) };
190
126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
191
127
|
192
128
= 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
193
129
194
- error: unsafe memory copying using a byte count (multiplied by size_of/size_of_val::<T>) instead of a count of T
195
- --> $DIR/unsafe_sizeof_count_copies.rs:54:14
196
- |
197
- LL | unsafe { copy(x.as_ptr(), y.as_mut_ptr(), size_of_val(&x[0]) * DOUBLE_SIZE / 2) };
198
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199
- |
200
- = 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
201
-
202
- error: aborting due to 25 previous errors
130
+ error: aborting due to 16 previous errors
203
131
0 commit comments