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 HashSet::insert return OccupiedEntry #495

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Make HashSet::insert return OccupiedEntry #495

merged 1 commit into from
Feb 18, 2024

Conversation

SUPERCILEX
Copy link
Contributor

@bors
Copy link
Contributor

bors commented Feb 12, 2024

☔ The latest upstream changes (presumably #502) made this pull request unmergeable. Please resolve the merge conflicts.

@Amanieu
Copy link
Member

Amanieu commented Feb 16, 2024

Sorry for the late review, can you rebase to fix conflicts?

@SUPERCILEX
Copy link
Contributor Author

Sure, done.

@Amanieu
Copy link
Member

Amanieu commented Feb 18, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Feb 18, 2024

📌 Commit 9beb0d2 has been approved by Amanieu

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 18, 2024

⌛ Testing commit 9beb0d2 with merge 274c7bb...

@bors
Copy link
Contributor

bors commented Feb 18, 2024

☀️ Test successful - checks-actions
Approved by: Amanieu
Pushing 274c7bb to master...

@bors bors merged commit 274c7bb into rust-lang:master Feb 18, 2024
26 checks passed
@decathorpe
Copy link

Reading this comment:
rust-lang/rust#120077 (comment)

And the changes (i.e. the signature of the insert function has changed), shouldn't this have been released as v0.15.0 instead of v0.14.4? Or is changing the return type of a function from () to non-() OK?

@@ -1003,7 +1003,7 @@ where
/// match singles.entry(ch) {
/// Vacant(single_entry) => {
/// // We found a new character for the first time.
/// single_entry.insert()
/// single_entry.insert();
Copy link
Member

Choose a reason for hiding this comment

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

This exemplifies how it was a breaking change to return something other than ().

@Amanieu
Copy link
Member

Amanieu commented Mar 20, 2024

I've yanked the release.

@SUPERCILEX
Copy link
Contributor Author

Will there be a replacement release for the stdlib?

@Amanieu
Copy link
Member

Amanieu commented Mar 29, 2024

Yes, I'll prepare a new release next week. I've been busy at Rust Nation this week.

@SUPERCILEX
Copy link
Contributor Author

Oh fun! Sounds good.

@Amanieu Amanieu mentioned this pull request Apr 28, 2024
bors added a commit that referenced this pull request Apr 28, 2024
Release 0.14.5

This temporarily reverts (#495) since that is a breaking change that will be included in v0.15.0.
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.

5 participants