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

Change signature of get_many_mut APIs #562

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

Urgau
Copy link
Member

@Urgau Urgau commented Sep 25, 2024

This PR changes the signature and contract of the get_many_mut APIs by

  1. panicking on overlapping keys
  2. returning an array of Option rather than an Option of array.

This was asked by T-libs-api in rust-lang/rust#97601 (comment) regarding the corresponding std HashMap functions.

src/map.rs Outdated Show resolved Hide resolved
src/raw/mod.rs Outdated Show resolved Hide resolved
src/raw/mod.rs Outdated Show resolved Hide resolved
src/table.rs Outdated Show resolved Hide resolved
@Urgau Urgau force-pushed the new-get-many-mut branch 3 times, most recently from 5f59023 to 1ce75c1 Compare September 25, 2024 17:47
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.

LGTM, but I'll leave it to @Amanieu to make sure of the API change.

src/raw/mod.rs Outdated Show resolved Hide resolved
@Urgau Urgau force-pushed the new-get-many-mut branch 2 times, most recently from b582436 to 6b28835 Compare September 27, 2024 17:04
src/raw/mod.rs Outdated Show resolved Hide resolved
src/map.rs Outdated Show resolved Hide resolved
src/map.rs Show resolved Hide resolved
src/raw/mod.rs Outdated Show resolved Hide resolved
@Urgau Urgau force-pushed the new-get-many-mut branch from e78ea1f to c1ee6ee Compare October 1, 2024 07:30
src/map.rs Outdated Show resolved Hide resolved
by 1) panicking on overlapping keys and 2) returning an array of Option
rather than an Option of array.
@Urgau Urgau force-pushed the new-get-many-mut branch from c1ee6ee to d50e3b2 Compare October 1, 2024 08:42
@Amanieu
Copy link
Member

Amanieu commented Oct 1, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Oct 1, 2024

📌 Commit d50e3b2 has been approved by Amanieu

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 1, 2024

⌛ Testing commit d50e3b2 with merge edd22e1...

@bors
Copy link
Contributor

bors commented Oct 1, 2024

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

@bors bors merged commit edd22e1 into rust-lang:master Oct 1, 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.

4 participants