Skip to content

Commit 084ed15

Browse files
committed
Filter out precise alloc ids from diagnostics
1 parent 9188f8c commit 084ed15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/ui/consts/missing_span_in_backtrace.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 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"
23

34
#![feature(const_swap)]
45
#![feature(const_mut_refs)]

src/test/ui/consts/missing_span_in_backtrace.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0080]: evaluation of constant value failed
22
--> /rustc/xyz/library/core/src/ptr/mod.rs:1135:9
33
|
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
55
|
66
= help: this code performed an operation that depends on the underlying bytes representing a pointer
77
= 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>>`
1414
note: inside `swap_nonoverlapping::<MaybeUninit<u8>>`
1515
--> /rustc/xyz/library/core/src/ptr/mod.rs:925:14
1616
note: inside `X`
17-
--> $DIR/missing_span_in_backtrace.rs:16:9
17+
--> $DIR/missing_span_in_backtrace.rs:17:9
1818
|
1919
LL | / ptr::swap_nonoverlapping(
2020
LL | | &mut ptr1 as *mut _ as *mut MaybeUninit<u8>,

0 commit comments

Comments
 (0)