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

Make insert_unique_unchecked unsafe #556

Merged
merged 2 commits into from
Sep 20, 2024
Merged

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented Sep 12, 2024

This is in line with the standard library guarantees that it should be impossible to create an inconsistent HashMap with well-defined key types.

This is in line with the standard library guarantees that it should be
impossible to create an inconsistent `HashMap` with well-defined key
types.
Copy link
Member

@cuviper cuviper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me to be unsafe.

src/map.rs Outdated Show resolved Hide resolved
src/set.rs Outdated Show resolved Hide resolved
src/set.rs Outdated Show resolved Hide resolved
@cuviper
Copy link
Member

cuviper commented Sep 20, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Sep 20, 2024

📌 Commit e774b7d has been approved by cuviper

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 20, 2024

⌛ Testing commit e774b7d with merge a25cd3b...

@bors
Copy link
Contributor

bors commented Sep 20, 2024

☀️ Test successful - checks-actions
Approved by: cuviper
Pushing a25cd3b to master...

@bors bors merged commit a25cd3b into rust-lang:master Sep 20, 2024
24 checks passed
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