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

Add an allocator() getter to HashMap and HashSet #257

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

optimalstrategy
Copy link
Contributor

As far as I can tell, both HashMap and HashSet are currently missing an API to retrieve the underlying allocator, which makes using them less ergonomic due to the need to plumb it everywhere. Vec and Box have this method, and I couldn't think of anything that would make its presence unsuitable, so this PR adds the getter to the collections.

@Amanieu
Copy link
Member

Amanieu commented Apr 20, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Apr 20, 2021

📌 Commit a0069dd has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Apr 20, 2021

⌛ Testing commit a0069dd with merge 805b5e2...

@bors
Copy link
Contributor

bors commented Apr 20, 2021

☀️ Test successful - checks-travis
Approved by: Amanieu
Pushing 805b5e2 to master...

@bors bors merged commit 805b5e2 into rust-lang:master Apr 20, 2021
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.

3 participants