mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Erase non-pal sys platform paths
This commit is contained in:
@@ -270,13 +270,13 @@ fn $name() -> &'static [(Match, &'static [u8])] {
|
||||
// erase thread caller ids
|
||||
r"call [0-9]+" => "call ID",
|
||||
// erase platform module paths
|
||||
"sys::pal::[a-z]+::" => "sys::pal::PLATFORM::",
|
||||
r"\bsys::([a-z_]+)::[a-z]+::" => "sys::$1::PLATFORM::",
|
||||
// Windows file paths
|
||||
r"\\" => "/",
|
||||
// erase Rust stdlib path
|
||||
"[^ \n`]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
|
||||
// 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
|
||||
r"[^ ]*/\.?cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/.../$1",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user