Add entry-like methods to HashSet by cuviper · Pull Request #60894 · rust-lang/rust (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation13 Commits3 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
HashSet::get_or_insert
HashSet::get_or_insert_with
These provide a simplification of the Entry
API for HashSet
, with
names chosen to match the similar methods on Option
.
HashSet::get_or_insert
HashSet::get_or_insert_with
These provide a simplification of the Entry
API for HashSet
, with
names chosen to match the similar methods on Option
.
r? @cramertj
(rust_highfive has picked a reviewer for you, use r? to override)
📌 Commit 5f93834 has been approved by cramertj
bors added S-waiting-on-bors
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review
Status: Awaiting review from the assignee but also interested parties.
labels
Can you also open a tracking issue for these?
📌 Commit 5e2c9d3 has been approved by cramertj
📌 Commit 9161a4d has been approved by cramertj,Centril
Centril added a commit to Centril/rust that referenced this pull request
…Centril
Add entry-like methods to HashSet
HashSet::get_or_insert
HashSet::get_or_insert_with
These provide a simplification of the Entry
API for HashSet
, with
names chosen to match the similar methods on Option
.
bors added a commit that referenced this pull request
Rollup of 6 pull requests
Successful merges:
- #60685 (Switch to SPDX 2.1 license expression)
- #60687 (Fix .natvis visualizers.)
- #60805 (remove compiletest's dependency on
filetime
) - #60862 (Get ty from local_decls instead of using Place)
- #60873 (Parse alternative incorrect uses of await and recover)
- #60894 (Add entry-like methods to HashSet)
Failed merges:
r? @ghost
Amanieu added a commit to Amanieu/hashbrown that referenced this pull request
Amanieu added a commit to Amanieu/hashbrown that referenced this pull request
bors added a commit to rust-lang/hashbrown that referenced this pull request
Labels
Status: Waiting on bors to run and complete tests. Bors will change the label on completion.