We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b28fea9 + 7482c54 commit e3d8ef8Copy full SHA for e3d8ef8
collector/src/artifact_stats.rs
@@ -95,7 +95,7 @@ static RUSTC_HASH_REGEX: OnceLock<Regex> = OnceLock::new();
95
96
/// Demangle the symbol and remove rustc mangling hashes.
97
fn normalize_symbol_name(symbol: &str) -> String {
98
- let regex = RUSTC_HASH_REGEX.get_or_init(|| Regex::new(r#"[a-z0-9]{15,16}"#).unwrap());
+ let regex = RUSTC_HASH_REGEX.get_or_init(|| Regex::new(r#"(::)?\b[a-z0-9]{15,17}\b"#).unwrap());
99
100
let symbol = rustc_demangle::demangle(symbol).to_string();
101
regex.replace_all(&symbol, "").to_string()
0 commit comments