You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/rustc/xyz/library/core/src/ptr/mod.rs:929:14: inside `swap_nonoverlapping::<MaybeUninit<u8>>` at /rustc/xyz/library/core/src/ptr/mod.rs:929:14
3
+
/rustc/xyz/library/core/src/ptr/mod.rs:948:9: inside `ptr::swap_nonoverlapping_simple_untyped::<MaybeUninit<u8>>` at /rustc/xyz/library/core/src/ptr/mod.rs:948:9
4
+
--> /rustc/xyz/library/core/src/ptr/mod.rs:1139:9
5
+
note: unable to copy parts of a pointer from memory at alloc6+0x1
6
+
note: inside `std::ptr::read::<MaybeUninit<MaybeUninit<u8>>>` at /rustc/xyz/library/core/src/ptr/mod.rs:1139:9
7
+
/rustc/xyz/library/core/src/mem/mod.rs:776:17: inside `mem::swap_simple::<MaybeUninit<MaybeUninit<u8>>>` at /rustc/xyz/library/core/src/mem/mod.rs:776:17
8
+
|
9
+
::: $DIR/missing_span_in_backtrace.rs:16:9
10
+
|
11
+
LL | / ptr::swap_nonoverlapping(
12
+
LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
13
+
LL | | &mut ptr2 as *mut _ as *mut MaybeUninit<u8>,
14
+
LL | | mem::size_of::<&i32>(),
15
+
LL | | );
16
+
| |_________- inside `X` at $DIR/missing_span_in_backtrace.rs:16:9
17
+
|
18
+
= help: this code performed an operation that depends on the underlying bytes representing a pointer
19
+
= help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
20
+
21
+
error: aborting due to previous error
22
+
23
+
For more information about this error, try `rustc --explain E0080`.
0 commit comments