Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normalize_symbol_name: also strip numeric suffix #1859

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

erikdesjardins
Copy link
Contributor

Some symbols also have a numeric suffix, e.g. in <core::fmt::Error as core::fmt::Debug>::fmt::h863044c0549d7049.60.

This results in spurious diffs, e.g. when running ./target/release/collector binary_stats +6f3eb1ce3d50246b2cbc5de3107c0f34889f5cc6 --rustc2 +2105ceeb0f23267f160392bd0e43b1c647590aac --include helloworld-tiny --profile Opt --backend Llvm --symbols, I see:

│ <core::fmt::Error as core::fmt::Debug>::fmt.60 │ 26 B │  0 B │ -26 │ -100.0% │
│ <core::fmt::Error as core::fmt::Debug>::fmt.72 │  0 B │ 26 B │ +26 │ +100.0% │

Similar to #1843

Some symbols also have a numeric suffix, e.g. in `<core::fmt::Error as core::fmt::Debug>::fmt::h863044c0549d7049.60`.

This results in spurious diffs, e.g. when running `./target/release/collector binary_stats +6f3eb1ce3d50246b2cbc5de3107c0f34889f5cc6 --rustc2 +2105ceeb0f23267f160392bd0e43b1c647590aac --include helloworld-tiny --profile Opt --backend Llvm --symbols`, I see:

```
│ <core::fmt::Error as core::fmt::Debug>::fmt.60 │ 26 B │  0 B │ -26 │ -100.0% │
│ <core::fmt::Error as core::fmt::Debug>::fmt.72 │  0 B │ 26 B │ +26 │ +100.0% │
```
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Kobzol Kobzol merged commit c61d7b2 into rust-lang:master Mar 15, 2024
11 checks passed
@erikdesjardins erikdesjardins deleted the more-norm branch March 15, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants