File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -270,13 +270,15 @@ regexes! {
270
270
// erase thread caller ids
271
271
r"call [0-9]+" => "call ID" ,
272
272
// erase platform module paths
273
- "sys::pal::[a-z]+::" => "sys::pal::PLATFORM::" ,
273
+ r"\bsys::pal::[a-z]+::" => "sys::pal::PLATFORM::" ,
274
+ r"\bsys::([a-z_]+)::[a-z]+::" => "sys::$1::PLATFORM::" ,
274
275
// Windows file paths
275
276
r"\\" => "/" ,
276
277
// erase Rust stdlib path
277
278
"[^ \n `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/" ,
278
279
// erase platform file paths
279
- "sys/pal/[a-z]+/" => "sys/pal/PLATFORM/" ,
280
+ r"\bsys/pal/[a-z]+/" => "sys/pal/PLATFORM/" ,
281
+ r"\bsys/([a-z_]+)/[a-z]+\b" => "sys/$1/PLATFORM" ,
280
282
// erase paths into the crate registry
281
283
r"[^ ]*/\.?cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/.../$1" ,
282
284
}
You can’t perform that action at this time.
0 commit comments