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::>` note: inside `swap_nonoverlapping::>` --> /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,