Skip to content

Implement pop_equiv() for HashMap - #11691

Closed
mneumann wants to merge 3 commits into
rust-lang:masterfrom
mneumann:hashmap
Closed

Implement pop_equiv() for HashMap#11691
mneumann wants to merge 3 commits into
rust-lang:masterfrom
mneumann:hashmap

Conversation

@mneumann

Copy link
Copy Markdown
Contributor

No description provided.

@flaper87

Copy link
Copy Markdown
Contributor

LGTM, could you please squash these commits?

@alexcrichton

Copy link
Copy Markdown
Member

This has a similar problem to #11074, and my concerns are in this comment: #11074 (comment)

I think that we should make a decision on this before merging.

@alexcrichton

Copy link
Copy Markdown
Member

I've added this to the next meeting agenda

@flaper87

flaper87 commented Feb 8, 2014

Copy link
Copy Markdown
Contributor

@alexcrichton was this discussed at the last meeting?

@alexcrichton

Copy link
Copy Markdown
Member

Ah sorry, I forgot to comment on this afterwards. We didn't get around to talking about this, and we thought that specific library issues like this shouldn't need to wait for a meeting.

I am personally still hesitant to merge due to my comment above.

@mneumann

mneumann commented Feb 9, 2014

Copy link
Copy Markdown
Contributor Author

I agree on not merging it. There should be a better solution for this. I'd strongly suggest to use the Equiv relation for all lookups.

@alexcrichton

Copy link
Copy Markdown
Member

Closing, I've opened #12135 on the equiv + hashmap topic.

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
…entri3

Lint `flatten()` under `lines_filter_map_ok`

Fixes rust-lang#11686

changelog: [`lines_filter_map_ok`]: Also lint calls to `flatten()`
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
11691: feat: Suggest union literals, suggest union fields within an empty union literal r=Veykril a=m0rg-dev

Adds a `Union {…}` completion in contexts where a union is expected, expanding to a choice of available fields (if snippets are supported):

![image](https://user-images.githubusercontent.com/38578268/158023335-84c03e39-daf0-4a52-b969-f40b01501cc8.png)
![image](https://user-images.githubusercontent.com/38578268/158023354-db49d0bb-034c-49d3-bc02-07414179cb61.png)

Also, adds support for listing possible fields in an empty union literal.

![image](https://user-images.githubusercontent.com/38578268/158023398-4695ae34-ce64-4f40-8494-68731a3030c6.png)
![image](https://user-images.githubusercontent.com/38578268/158023406-be96dd95-125a-47ac-9628-0bce634ca2eb.png)

Closes rust-lang#11568.

Co-authored-by: Morgan Thomas <corp@m0rg.dev>
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