1
1
error: cannot memcpy dynamically sized data
2
- --> $CORE_SRC/intrinsics/mod.rs:4460 :9
2
+ --> $CORE_SRC/intrinsics/mod.rs:4472 :9
3
3
|
4
- 4460 | copy(src, dst, count)
4
+ 4472 | copy(src, dst, count)
5
5
| ^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
note: used from within `core::intrinsics::copy::<f32>`
8
- --> $CORE_SRC/intrinsics/mod.rs:4437 :21
8
+ --> $CORE_SRC/intrinsics/mod.rs:4449 :21
9
9
|
10
- 4437 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10
+ 4449 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
11
11
| ^^^^
12
12
note: called by `ptr_copy::copy_via_raw_ptr`
13
13
--> $DIR/ptr_copy.rs:28:18
@@ -28,25 +28,25 @@ note: called by `main`
28
28
error: cannot cast between pointer types
29
29
from `*f32`
30
30
to `*struct () { }`
31
- --> $CORE_SRC/intrinsics/mod.rs:4448 :9
31
+ --> $CORE_SRC/intrinsics/mod.rs:4460 :9
32
32
|
33
- 4448 | / ub_checks::assert_unsafe_precondition!(
34
- 4449 | | check_language_ub,
35
- 4450 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
33
+ 4460 | / ub_checks::assert_unsafe_precondition!(
34
+ 4461 | | check_language_ub,
35
+ 4462 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
36
36
... |
37
- 4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38
- 4459 | | );
37
+ 4470 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38
+ 4471 | | );
39
39
| |_________^
40
40
|
41
41
note: used from within `core::intrinsics::copy::<f32>`
42
- --> $CORE_SRC/intrinsics/mod.rs:4448 :9
42
+ --> $CORE_SRC/intrinsics/mod.rs:4460 :9
43
43
|
44
- 4448 | / ub_checks::assert_unsafe_precondition!(
45
- 4449 | | check_language_ub,
46
- 4450 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
44
+ 4460 | / ub_checks::assert_unsafe_precondition!(
45
+ 4461 | | check_language_ub,
46
+ 4462 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
47
47
... |
48
- 4458 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49
- 4459 | | );
48
+ 4470 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49
+ 4471 | | );
50
50
| |_________^
51
51
note: called by `ptr_copy::copy_via_raw_ptr`
52
52
--> $DIR/ptr_copy.rs:28:18
0 commit comments