fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB28 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
3   |
4   = note: unable to copy parts of a pointer from memory at ALLOC_ID
5   |
6note: inside `std::ptr::read::<MaybeUninit<MaybeUninit<u8>>>`
7  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
8note: inside `mem::swap_simple::<MaybeUninit<MaybeUninit<u8>>>`
9  --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
10note: inside `ptr::swap_nonoverlapping_simple_untyped::<MaybeUninit<u8>>`
11  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
12note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
13  --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
14note: inside `X`
15  --> $DIR/missing_span_in_backtrace.rs:17:9
16   |
1717 | /         ptr::swap_nonoverlapping(
1818 | |             &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
1919 | |             &mut ptr2 as *mut _ as *mut MaybeUninit<u8>,
2020 | |             mem::size_of::<&i32>(),
2121 | |         );
22   | |_________^
23   = help: this code performed an operation that depends on the underlying bytes representing a pointer
24   = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
25
26error: aborting due to previous error
27
28For more information about this error, try `rustc --explain E0080`.