This repository was archived by the owner on May 28, 2025. It is now read-only.
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 1
1
// 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"
2
3
3
4
#![ feature( const_swap) ]
4
5
#![ feature( const_mut_refs) ]
Original file line number Diff line number Diff line change 1
1
error[E0080]: evaluation of constant value failed
2
2
--> /rustc/xyz/library/core/src/ptr/mod.rs:1135:9
3
3
|
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
5
5
|
6
6
= help: this code performed an operation that depends on the underlying bytes representing a pointer
7
7
= 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>>`
14
14
note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
15
15
--> /rustc/xyz/library/core/src/ptr/mod.rs:925:14
16
16
note: inside `X`
17
- --> $DIR/missing_span_in_backtrace.rs:16 :9
17
+ --> $DIR/missing_span_in_backtrace.rs:17 :9
18
18
|
19
19
LL | / ptr::swap_nonoverlapping(
20
20
LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,
You can’t perform that action at this time.
0 commit comments