We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1fc7195 + 10529cc commit c61d7b2Copy full SHA for c61d7b2
collector/src/artifact_stats.rs
@@ -95,7 +95,8 @@ 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#"(::)?\b[a-z0-9]{15,17}\b"#).unwrap());
+ let regex =
99
+ RUSTC_HASH_REGEX.get_or_init(|| Regex::new(r#"(::)?\b[a-z0-9]{15,17}\b(\.\d+)?"#).unwrap());
100
101
let symbol = rustc_demangle::demangle(symbol).to_string();
102
regex.replace_all(&symbol, "").to_string()
0 commit comments