File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11// compile-flags: -Z simulate-remapped-rust-src-base=/rustc/xyz -Z translate-remapped-path-to-local-path=no
2+ // normalize-stderr-test "alloc[0-9]+" -> "ALLOC_ID"
23
34#![ feature( const_swap) ]
45#![ feature( const_mut_refs) ]
Original file line number Diff line number Diff line change 11error[E0080]: evaluation of constant value failed
22 --> /rustc/xyz/library/core/src/ptr/mod.rs:1135:9
33 |
4- = note: unable to copy parts of a pointer from memory at alloc10
4+ = note: unable to copy parts of a pointer from memory at ALLOC_ID
55 |
66 = help: this code performed an operation that depends on the underlying bytes representing a pointer
77 = help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
@@ -14,7 +14,7 @@ note: inside `ptr::swap_nonoverlapping_simple_untyped::<MaybeUninit<u8>>`
1414note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
1515 --> /rustc/xyz/library/core/src/ptr/mod.rs:925:14
1616note: inside `X`
17- --> $DIR/missing_span_in_backtrace.rs:16 :9
17+ --> $DIR/missing_span_in_backtrace.rs:17 :9
1818 |
1919LL | / ptr::swap_nonoverlapping(
2020LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
You can’t perform that action at this time.
0 commit comments