Skip to content

Derive TotalEq for std::intrinsics::TypeId #13154

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

Merged
merged 1 commit into from
Mar 28, 2014
Merged

Conversation

tomassedovic
Copy link
Contributor

HashMap and HashSet require keys to implement TotalEq. This makes it possible to use TypeId as a HashMap key again.

Question for reviewers: assuming we want to support HashMap<TypeId, whatever>, would it make sense to add a relevant test? If so, should it go to libcollections or libstd?

HashMap and HashSet require keys to implement TotalEq. This makes it possible to use TypeId as a HashMap key again.
bors added a commit that referenced this pull request Mar 28, 2014
HashMap and HashSet require keys to implement TotalEq. This makes it possible to use TypeId as a HashMap key again.

Question for reviewers: assuming we want to support `HashMap<TypeId, whatever>`, would it make sense to add a relevant test? If so, should it go to libcollections or libstd?
@bors bors closed this Mar 28, 2014
@bors bors merged commit 4d6c47b into rust-lang:master Mar 28, 2014
@tomassedovic tomassedovic deleted the patch-1 branch March 28, 2014 20:36
JohnTitor pushed a commit to JohnTitor/rust that referenced this pull request Sep 6, 2022
Drop the expander borrow in all control flow paths

The change in rust-lang/rust-analyzer#13123
actually re-uses the RefMut borrow instead of dropping it so we need to
drop it manually where required.

Fixes rust-lang/rust-analyzer#13153
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 25, 2024
Temporarily remove myself from reviewer rotation

I'm going to focus on the project goal and my own contributions, this + medical stuff leaves me not enough time to review.

I'll still review any performance related PR, and you can still request from me a benchmark for a PR, and will finish the PRs that I'm still assign to.

changelog: none
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