1
1
error: cannot memcpy dynamically sized data
2
- --> $CORE_SRC/intrinsics/mod.rs:4158 :9
2
+ --> $CORE_SRC/intrinsics/mod.rs:4421 :9
3
3
|
4
- 4158 | copy(src, dst, count)
4
+ 4421 | copy(src, dst, count)
5
5
| ^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
note: used from within `core::intrinsics::copy::<f32>`
8
- --> $CORE_SRC/intrinsics/mod.rs:4134 :21
8
+ --> $CORE_SRC/intrinsics/mod.rs:4398 :21
9
9
|
10
- 4134 | pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize) {
10
+ 4398 | 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,27 +28,27 @@ 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:4146 :9
31
+ --> $CORE_SRC/intrinsics/mod.rs:4409 :9
32
32
|
33
- 4146 | / ub_checks::assert_unsafe_precondition!(
34
- 4147 | | check_language_ub,
35
- 4148 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
36
- 4149 | | (
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 | | (
37
37
... |
38
- 4156 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39
- 4157 | | );
38
+ 4419 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
39
+ 4420 | | );
40
40
| |_________^
41
41
|
42
42
note: used from within `core::intrinsics::copy::<f32>`
43
- --> $CORE_SRC/intrinsics/mod.rs:4146 :9
43
+ --> $CORE_SRC/intrinsics/mod.rs:4409 :9
44
44
|
45
- 4146 | / ub_checks::assert_unsafe_precondition!(
46
- 4147 | | check_language_ub,
47
- 4148 | | "ptr::copy requires that both pointer arguments are aligned and non-null",
48
- 4149 | | (
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 | | (
49
49
... |
50
- 4156 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51
- 4157 | | );
50
+ 4419 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size)
51
+ 4420 | | );
52
52
| |_________^
53
53
note: called by `ptr_copy::copy_via_raw_ptr`
54
54
--> $DIR/ptr_copy.rs:28:18
0 commit comments