We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5353052 commit 9c365bdCopy full SHA for 9c365bd
crates/stdsimd-test/src/lib.rs
@@ -59,10 +59,16 @@ struct Instruction {
59
60
fn normalize(symbol: &str) -> String {
61
let symbol = rustc_demangle::demangle(symbol).to_string();
62
- match symbol.rfind("::h") {
+ let mut ret = match symbol.rfind("::h") {
63
Some(i) => symbol[..i].to_string(),
64
None => symbol.to_string(),
65
+ };
66
+ // Normalize to only one leading underscore to handle platforms that may
67
+ // inject extra ones in symbol names
68
+ while ret.starts_with("__") {
69
+ ret.remove(0);
70
}
71
+ return ret
72
73
74
/// Main entry point for this crate, called by the `#[assert_instr]` macro.
0 commit comments