11error: cannot memcpy dynamically sized data
2- --> $CORE_SRC/intrinsics/mod.rs:4421 :9
2+ --> $CORE_SRC/intrinsics/mod.rs:4445 :9
33 |
4- 4421 | copy(src, dst, count)
4+ 4445 | copy(src, dst, count)
55 | ^^^^^^^^^^^^^^^^^^^^^
66 |
77note: used from within `core::intrinsics::copy::<f32>`
8- --> $CORE_SRC/intrinsics/mod.rs:4398 :21
8+ --> $CORE_SRC/intrinsics/mod.rs:4422 :21
99 |
10- 4398 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+ 4422 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
1111 | ^^^^
1212note: called by `ptr_copy::copy_via_raw_ptr`
1313 --> $DIR/ptr_copy.rs:28:18
@@ -28,27 +28,27 @@ note: called by `main`
2828error: cannot cast between pointer types
2929 from `*f32`
3030 to `*struct () { }`
31- --> $CORE_SRC/intrinsics/mod.rs:4409 :9
31+ --> $CORE_SRC/intrinsics/mod.rs:4433 :9
3232 |
33- 4409 | / ub_checks::assert_unsafe_precondition!(
34- 4410 | | check_language_ub,
35- 4411 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
36- 4412 | | (
33+ 4433 | / ub_checks::assert_unsafe_precondition!(
34+ 4434 | | check_language_ub,
35+ 4435 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
36+ 4436 | | (
3737... |
38- 4419 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39- 4420 | | );
38+ 4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39+ 4444 | | );
4040 | |_________^
4141 |
4242note: used from within `core::intrinsics::copy::<f32>`
43- --> $CORE_SRC/intrinsics/mod.rs:4409 :9
43+ --> $CORE_SRC/intrinsics/mod.rs:4433 :9
4444 |
45- 4409 | / ub_checks::assert_unsafe_precondition!(
46- 4410 | | check_language_ub,
47- 4411 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
48- 4412 | | (
45+ 4433 | / ub_checks::assert_unsafe_precondition!(
46+ 4434 | | check_language_ub,
47+ 4435 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
48+ 4436 | | (
4949... |
50- 4419 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51- 4420 | | );
50+ 4443 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51+ 4444 | | );
5252 | |_________^
5353note: called by `ptr_copy::copy_via_raw_ptr`
5454 --> $DIR/ptr_copy.rs:28:18
0 commit comments