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

Align with cargo #69

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Align with cargo #69

merged 2 commits into from
Aug 1, 2024

Conversation

Jake-Shadle
Copy link
Member

As noted in the comment, this changes the url kind from u64 -> usize to match cargo, which unfortunately uses the default derive(Hash) which for enums uses ::core::intrinsics::discriminant_value which for non-repr enums is...pointer size. This means the hash computed is different between 32 and 64-bit targets when they could easily be the same. :(

Resolves: EmbarkStudios/cargo-deny#540 (comment)

@Jake-Shadle Jake-Shadle merged commit bf367b8 into main Aug 1, 2024
6 of 7 checks passed
@Jake-Shadle Jake-Shadle deleted the fix-pointer-width-affecting-hash branch August 1, 2024 17:03
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.

Test failure in the last release
1 participant