1
Fork 0

Filter out precise alloc ids from diagnostics

This commit is contained in:
Oli Scherer 2022-12-05 10:42:59 +00:00
parent 9188f8cb82
commit 084ed15403
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
// compile-flags: -Z simulate-remapped-rust-src-base=/rustc/xyz -Z translate-remapped-path-to-local-path=no // compile-flags: -Z simulate-remapped-rust-src-base=/rustc/xyz -Z translate-remapped-path-to-local-path=no
// normalize-stderr-test "alloc[0-9]+" -> "ALLOC_ID"
#![feature(const_swap)] #![feature(const_swap)]
#![feature(const_mut_refs)] #![feature(const_mut_refs)]

View file

@ -1,7 +1,7 @@
error[E0080]: evaluation of constant value failed error[E0080]: evaluation of constant value failed
--> /rustc/xyz/library/core/src/ptr/mod.rs:1135:9 --> /rustc/xyz/library/core/src/ptr/mod.rs:1135:9
| |
= note: unable to copy parts of a pointer from memory at alloc10 = note: unable to copy parts of a pointer from memory at ALLOC_ID
| |
= help: this code performed an operation that depends on the underlying bytes representing a pointer = help: this code performed an operation that depends on the underlying bytes representing a pointer
= help: the absolute address of a pointer is not known at compile-time, so such operations are not supported = 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>>`
note: inside `swap_nonoverlapping::<MaybeUninit<u8>>` note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
--> /rustc/xyz/library/core/src/ptr/mod.rs:925:14 --> /rustc/xyz/library/core/src/ptr/mod.rs:925:14
note: inside `X` note: inside `X`
--> $DIR/missing_span_in_backtrace.rs:16:9 --> $DIR/missing_span_in_backtrace.rs:17:9
| |
LL | / ptr::swap_nonoverlapping( LL | / ptr::swap_nonoverlapping(
LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>, LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,