Skip to content

Conversation

@cramertj
Copy link
Member

@cramertj cramertj commented Nov 5, 2025

Hashbrown support originally added in rust-lang/hashbrown#133
Part of rust-lang/wg-allocators#7

See also: hashset support in #148550

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 5, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 5, 2025

r? @ibraheemdev

rustbot has assigned @ibraheemdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

K,
V,
S = RandomState,
#[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
Copy link
Member Author

@cramertj cramertj Nov 5, 2025

Choose a reason for hiding this comment

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

Note that there is an Allocator bound on the type parameter. S = RandomState does not use a similar bound. However, hashbrown currently has this bound, so if we want to relax it to allow users to refer to non-well-formed HashMap types with nonsense allocator type parameters, that will first need to be changed upstream.

@rust-log-analyzer

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants