Bug 1486042 Comment 41 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

If you did that like:

```rust
let skip_link_name_attr = mangled == canonical_name ||
    (abi == Abi::C &&
     !mangled.is_empty() &&
     &mangled[1..] == canonical_name_);

if !skip_link_name_attr {
    attributes.push(..);
}
```

It'd be reasonably ok, I think. That being said... Is there any kind of C++ mangling in any target platform that doesn't have this weird backend mangling that may end up legitimately prepending just an underscore or such?
If you did that like:

```rust
let skip_link_name_attr = mangled == canonical_name ||
    (abi == Abi::C &&
     !mangled.is_empty() &&
     &mangled[1..] == canonical_name);

if !skip_link_name_attr {
    attributes.push(..);
}
```

It'd be reasonably ok, I think. That being said... Is there any kind of C++ mangling in any target platform that doesn't have this weird backend mangling that may end up legitimately prepending just an underscore or such?

Back to Bug 1486042 Comment 41