about summary refs log tree commit diff
path: root/tests/ui/consts/const-err-enum-discriminant.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-err-enum-discriminant.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-err-enum-discriminant.rs')
-rw-r--r--tests/ui/consts/const-err-enum-discriminant.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/consts/const-err-enum-discriminant.rs b/tests/ui/consts/const-err-enum-discriminant.rs
index 190ef47f436..55674600584 100644
--- a/tests/ui/consts/const-err-enum-discriminant.rs
+++ b/tests/ui/consts/const-err-enum-discriminant.rs
@@ -1,3 +1,5 @@
+//@ stderr-per-bitwidth
+
 #[derive(Copy, Clone)]
 union Foo {
     a: isize,