Skip to content

Conversation

DaniPopes
Copy link
Member

Rust standard library and hashbrown Entry types have different generics. Re-export std's ones which don't have S, and provide defaults for S for hashbrown.

Ideally we would have type aliases for std with an S that is unused, but that is a hard error on type aliases, and I don't feel like re-implementing the entire Entry API when this is good enough.

cc @Rjected

Fixes #942.

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Aug 2, 2025
@DaniPopes DaniPopes merged commit 10aed00 into main Aug 2, 2025
31 checks passed
@DaniPopes DaniPopes deleted the dani/map-entry branch August 2, 2025 16:23
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature] Make alloy-primitives map::Entry type usable in function signatures

2 participants