11error: cannot memcpy dynamically sized data
2- --> $CORE_SRC/intrinsics/mod.rs:3805 :9
2+ --> $CORE_SRC/intrinsics/mod.rs:3806 :9
33 |
4- 3805 | copy(src, dst, count)
4+ 3806 | copy(src, dst, count)
55 | ^^^^^^^^^^^^^^^^^^^^^
66 |
77note: used from within `core::intrinsics::copy::<f32>`
8- --> $CORE_SRC/intrinsics/mod.rs:3785 :21
8+ --> $CORE_SRC/intrinsics/mod.rs:3786 :21
99 |
10- 3785 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10+ 3786 | 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,25 +28,25 @@ note: called by `main`
2828error: cannot cast between pointer types
2929 from `*f32`
3030 to `*struct () { }`
31- --> $CORE_SRC/intrinsics/mod.rs:3793 :9
31+ --> $CORE_SRC/intrinsics/mod.rs:3794 :9
3232 |
33- 3793 | / ub_checks::assert_unsafe_precondition!(
34- 3794 | | check_language_ub,
35- 3795 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
33+ 3794 | / ub_checks::assert_unsafe_precondition!(
34+ 3795 | | check_language_ub,
35+ 3796 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
3636... |
37- 3803 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38- 3804 | | );
37+ 3804 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
38+ 3805 | | );
3939 | |_________^
4040 |
4141note: used from within `core::intrinsics::copy::<f32>`
42- --> $CORE_SRC/intrinsics/mod.rs:3793 :9
42+ --> $CORE_SRC/intrinsics/mod.rs:3794 :9
4343 |
44- 3793 | / ub_checks::assert_unsafe_precondition!(
45- 3794 | | check_language_ub,
46- 3795 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
44+ 3794 | / ub_checks::assert_unsafe_precondition!(
45+ 3795 | | check_language_ub,
46+ 3796 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
4747... |
48- 3803 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49- 3804 | | );
48+ 3804 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
49+ 3805 | | );
5050 | |_________^
5151note: called by `ptr_copy::copy_via_raw_ptr`
5252 --> $DIR/ptr_copy.rs:28:18
0 commit comments