-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement StableHash for BitSet and BitMatrix via Hash #91903
Conversation
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
Is there a specific test/issue that this fixes? |
This fixes an issue where bit sets / bit matrices the same word content but a different domain size would receive the same hash.
8ff97d0
to
d0281bc
Compare
Added tests that used to fail in a previous implementation. I added test cases to the stable hasher since it strictly requires the hash to include all information that affects PartialEq comparison. |
@bors r+ |
📌 Commit d0281bc has been approved by |
@bors rollup=never just in case.. |
⌛ Testing commit d0281bc with merge e64e21a81265ec2f9388dad1ace1e1833ba0904c... |
💔 Test failed - checks-actions |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry docker.io 503 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (87e8639): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This fixes an issue where bit sets / bit matrices the same word
content but a different domain size would receive the same hash.