]> git.lizzy.rs Git - rust.git/commitdiff
Filter out precise alloc ids from diagnostics
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 5 Dec 2022 10:42:59 +0000 (10:42 +0000)
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 6 Dec 2022 18:59:47 +0000 (18:59 +0000)
src/test/ui/consts/missing_span_in_backtrace.rs
src/test/ui/consts/missing_span_in_backtrace.stderr

index dd4ee3bed4417cbe1b47e06a71d588852bb55d33..444a2c553b2de7c9f9c81f45fa568711b2cbdbbb 100644 (file)
@@ -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)]
index b8c20df8700fa6bc18a4c7d2facfdd09784a72cc..32fdcc365be7f766acb133d6f222e90827f78ca8 100644 (file)
@@ -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>,