diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-05 10:42:59 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-06 18:59:47 +0000 |
| commit | 084ed15403539de0dd577dc9ac7c2a0b15a9be13 (patch) | |
| tree | 6b24dfc7abc6efdc3200022dd2a2a5daf95d7509 | |
| parent | 9188f8cb82c725712e1de45d03201de3193cfc2d (diff) | |
| download | rust-084ed15403539de0dd577dc9ac7c2a0b15a9be13.tar.gz rust-084ed15403539de0dd577dc9ac7c2a0b15a9be13.zip | |
Filter out precise alloc ids from diagnostics
| -rw-r--r-- | src/test/ui/consts/missing_span_in_backtrace.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/consts/missing_span_in_backtrace.stderr | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/consts/missing_span_in_backtrace.rs b/src/test/ui/consts/missing_span_in_backtrace.rs index dd4ee3bed44..444a2c553b2 100644 --- a/src/test/ui/consts/missing_span_in_backtrace.rs +++ b/src/test/ui/consts/missing_span_in_backtrace.rs @@ -1,4 +1,5 @@ // 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_mut_refs)] diff --git a/src/test/ui/consts/missing_span_in_backtrace.stderr b/src/test/ui/consts/missing_span_in_backtrace.stderr index b8c20df8700..32fdcc365be 100644 --- a/src/test/ui/consts/missing_span_in_backtrace.stderr +++ b/src/test/ui/consts/missing_span_in_backtrace.stderr @@ -1,7 +1,7 @@ error[E0080]: evaluation of constant value failed --> /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: 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>>` --> /rustc/xyz/library/core/src/ptr/mod.rs:925:14 note: inside `X` - --> $DIR/missing_span_in_backtrace.rs:16:9 + --> $DIR/missing_span_in_backtrace.rs:17:9 | LL | / ptr::swap_nonoverlapping( LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>, |
