Skip to content

Conversation

yoshuawuyts
Copy link
Member

@yoshuawuyts yoshuawuyts commented Nov 20, 2020

Tracking issue #79221.

As suggested by @m-ou-se in #70758 (comment) this implements slice::fill_with as a counterpart to slice::fill. This mirrors Vec::resize and Vec::resize_with. Thanks!

r? @m-ou-se

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2020
Copy link
Member

@m-ou-se m-ou-se left a comment

Choose a reason for hiding this comment

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

Thanks for implementing this!

@m-ou-se m-ou-se added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. A-slice Area: `[T]` labels Nov 20, 2020
@m-ou-se
Copy link
Member

m-ou-se commented Nov 20, 2020

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 20, 2020

📌 Commit a64d0d4 has been approved by m-ou-se

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 20, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Nov 21, 2020
Add `core::slice::fill_with`

Tracking issue rust-lang#79221.

As suggested by `@m-ou-se` in rust-lang#70758 (comment) this implements `slice::fill_with` as a counterpart to `slice::fill`. This mirrors `Vec::resize` and `Vec::resize_with`. Thanks!

r? `@m-ou-se`
@bors
Copy link
Collaborator

bors commented Nov 21, 2020

⌛ Testing commit a64d0d4 with merge 29a74e6...

@bors
Copy link
Collaborator

bors commented Nov 21, 2020

☀️ Test successful - checks-actions
Approved by: m-ou-se
Pushing 29a74e6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 21, 2020
@bors bors merged commit 29a74e6 into rust-lang:master Nov 21, 2020
@rustbot rustbot added this to the 1.50.0 milestone Nov 21, 2020
@yoshuawuyts yoshuawuyts deleted the slice-fill-with branch November 21, 2020 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-slice Area: `[T]` merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants