We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&T
T
#214 and #213 fix hash(x) != hash(&x), but this bug still exists in nightly channel
hash(x) != hash(&x)
aHash Version: 0.8.11
0.8.11
nightly Version: nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.81.0-nightly (b5b13568f 2024-06-10)
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.81.0-nightly (b5b13568f 2024-06-10)
fn test() { use std::hash::BuildHasher; let x = 10; println!("x: {}", x); let rs = ahash::RandomState::new(); println!("ahash hash_one(x) {}", rs.clone().hash_one(x)); println!("ahash hash_one(&x) {}", rs.clone().hash_one(&x)); let rs = std::hash::RandomState::new(); println!("std hash_one(x) {}", rs.clone().hash_one(x)); println!("std hash_one(&x) {}", rs.clone().hash_one(&x)); }
x: 10 ahash hash_one(x) 14903417265985317241 ahash hash_one(&x) 10595472914121346771 std hash_one(x) 752986751915508312 std hash_one(&x) 752986751915508312
The text was updated successfully, but these errors were encountered:
sorry. I find that ahash version 0.8.11 does not include the fix commit it's correct using master branch. I'll close it
Sorry, something went wrong.
No branches or pull requests
#214 and #213 fix
hash(x) != hash(&x)
, but this bug still exists in nightly channelaHash Version:
0.8.11
nightly Version:
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.81.0-nightly (b5b13568f 2024-06-10)
The text was updated successfully, but these errors were encountered: