Skip to content

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

Merged
bors merged 1 commit intorust-lang:masterfrom
optimalstrategy:add-allocator-getters
Apr 20, 2021
Merged

Add an allocator() getter to HashMap and HashSet#257
bors merged 1 commit intorust-lang:masterfrom
optimalstrategy:add-allocator-getters

Conversation

@optimalstrategy
Copy link
Copy Markdown
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
Copy Markdown
Member

Amanieu commented Apr 20, 2021

@bors r+

@bors
Copy link
Copy Markdown
Contributor

bors commented Apr 20, 2021

📌 Commit a0069dd has been approved by Amanieu

@bors
Copy link
Copy Markdown
Contributor

bors commented Apr 20, 2021

⌛ Testing commit a0069dd with merge 805b5e2...

@bors
Copy link
Copy Markdown
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