Skip to content

Commit b522d03

Browse files
committed
Erase non-pal sys platform paths
1 parent 96cfc75 commit b522d03

File tree

1 file changed

+2
-2
lines changed
  • src/tools/miri/tests

1 file changed

+2
-2
lines changed

src/tools/miri/tests/ui.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ regexes! {
270270
// erase thread caller ids
271271
r"call [0-9]+" => "call ID",
272272
// erase platform module paths
273-
"sys::pal::[a-z]+::" => "sys::pal::PLATFORM::",
273+
r"\bsys::([a-z_]+)::[a-z]+::" => "sys::$1::PLATFORM::",
274274
// Windows file paths
275275
r"\\" => "/",
276276
// erase Rust stdlib path
277277
"[^ \n`]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
278278
// erase platform file paths
279-
"sys/pal/[a-z]+/" => "sys/pal/PLATFORM/",
279+
r"\bsys/([a-z_]+)/[a-z]+\b" => "sys/$1/PLATFORM",
280280
// erase paths into the crate registry
281281
r"[^ ]*/\.?cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/.../$1",
282282
}

0 commit comments

Comments
 (0)