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

Replace some custom unsafe code with array::map #281

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

cole-miller
Copy link
Contributor

<[T; N]>::map was recently stabilized (rust-lang/rust#87174). It's not on any stable or beta yet, but we're only using it here with cfg(feature = "nightly") (in the functions HashMap::get_each_mut and HashMap::get_each_key_value_mut).

`<[T; N]>::map` was recently stabilized. It's not on any stable or beta
yet, but we're only using it here with `cfg(feature = "nightly")`.
@cole-miller cole-miller marked this pull request as ready for review July 19, 2021 00:34
@Amanieu
Copy link
Member

Amanieu commented Jul 19, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jul 19, 2021

📌 Commit bf3247f has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Jul 19, 2021

⌛ Testing commit bf3247f with merge a036b25...

@bors
Copy link
Contributor

bors commented Jul 19, 2021

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

@bors bors merged commit a036b25 into rust-lang:master Jul 19, 2021
@cole-miller cole-miller deleted the get-each-mut-array-map branch July 19, 2021 17:24
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