Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
cole-miller:get-each-mut-array-map
Jul 19, 2021
Merged

Replace some custom unsafe code with array::map#281
bors merged 1 commit into
rust-lang:masterfrom
cole-miller:get-each-mut-array-map

Conversation

@cole-miller

Copy link
Copy Markdown

<[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 force-pushed the get-each-mut-array-map branch from 2dcb7bf to bf3247f Compare July 19, 2021 00:24
@cole-miller cole-miller marked this pull request as ready for review July 19, 2021 00:34
@Amanieu

Amanieu commented Jul 19, 2021

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jul 19, 2021

Copy link
Copy Markdown
Contributor

📌 Commit bf3247f has been approved by Amanieu

@bors

bors commented Jul 19, 2021

Copy link
Copy Markdown
Contributor

⌛ Testing commit bf3247f with merge a036b25...

@bors

bors commented Jul 19, 2021

Copy link
Copy Markdown
Contributor

☀️ 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