From 18ff35026ebeb2b1ef28434111ea42f4149bea22 Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Wed, 25 Mar 2026 23:37:39 +0000 Subject: [PATCH] Normalize rustc path prefix when testing `-Z track-diagnostics` Fixes https://www.github.com/rust-lang/rust/issues/154392 --- tests/rustdoc-ui/track-diagnostics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/rustdoc-ui/track-diagnostics.rs b/tests/rustdoc-ui/track-diagnostics.rs index 6a5d1b53b3c7f..5d04111524b4f 100644 --- a/tests/rustdoc-ui/track-diagnostics.rs +++ b/tests/rustdoc-ui/track-diagnostics.rs @@ -3,6 +3,7 @@ // Normalize the emitted location so this doesn't need // updating everytime someone adds or removes a line. //@ normalize-stderr: ".rs:\d+:\d+" -> ".rs:LL:CC" +//@ normalize-stderr: "created at .*compiler/" -> "created at compiler/" struct A; struct B;