summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/union-const-eval-field.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-18 19:14:43 +0200
committerGitHub <noreply@github.com>2025-07-18 19:14:43 +0200
commitb3827e4f3728b77bd3e60587487ebfc3cc8d901b (patch)
treec53f9b733d914684f658dd5a7f2e1813bce849a7 /tests/ui/consts/const-eval/union-const-eval-field.rs
parent61285e211bf3d323d2c5d649c99207c500cc0cc2 (diff)
parent652ba279ecc693d8b4310c40e645a62009f5b0ed (diff)
downloadrust-b3827e4f3728b77bd3e60587487ebfc3cc8d901b.tar.gz
rust-b3827e4f3728b77bd3e60587487ebfc3cc8d901b.zip
Rollup merge of #142673 - oli-obk:uninit-read-mem, r=RalfJung
Show the offset, length and memory of uninit read errors

r? ``@RalfJung``

I want to improve memory dumps in general. Not sure yet how to do so best within rust diagnostics, but in a perfect world I could generate a dummy in-memory file (that contains the rendered memory dump) that we then can then provide regular rustc `Span`s to. So we'd basically report normal diagnostics for them with squiggly lines and everything.
Diffstat (limited to 'tests/ui/consts/const-eval/union-const-eval-field.rs')
-rw-r--r--tests/ui/consts/const-eval/union-const-eval-field.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/union-const-eval-field.rs b/tests/ui/consts/const-eval/union-const-eval-field.rs
index 0ad94eee7f4..719e59b007c 100644
--- a/tests/ui/consts/const-eval/union-const-eval-field.rs
+++ b/tests/ui/consts/const-eval/union-const-eval-field.rs
@@ -1,4 +1,5 @@
 //@ dont-require-annotations: NOTE
+//@ normalize-stderr: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
 
 type Field1 = i32;
 type Field2 = f32;