Erase non-pal sys platform paths

This commit is contained in:
Thalia Archibald 2025-02-26 23:34:39 -08:00
parent efea9896f5
commit 9bdd92118c

View File

@ -270,13 +270,13 @@ regexes! {
// erase thread caller ids // erase thread caller ids
r"call [0-9]+" => "call ID", r"call [0-9]+" => "call ID",
// erase platform module paths // erase platform module paths
"sys::pal::[a-z]+::" => "sys::pal::PLATFORM::", r"\bsys::([a-z_]+)::[a-z]+::" => "sys::$1::PLATFORM::",
// Windows file paths // Windows file paths
r"\\" => "/", r"\\" => "/",
// erase Rust stdlib path // erase Rust stdlib path
"[^ \n`]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/", "[^ \n`]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
// erase platform file paths // erase platform file paths
"sys/pal/[a-z]+/" => "sys/pal/PLATFORM/", r"\bsys/([a-z_]+)/[a-z]+\b" => "sys/$1/PLATFORM",
// erase paths into the crate registry // erase paths into the crate registry
r"[^ ]*/\.?cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/.../$1", r"[^ ]*/\.?cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/.../$1",
} }