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

More mem::take in library #110633

Merged
merged 1 commit into from
Apr 21, 2023
Merged

More mem::take in library #110633

merged 1 commit into from
Apr 21, 2023

Conversation

scottmcm
Copy link
Member

A bunch of places were using replace(…, &mut []), but that can just be take.

A bunch of places were using `replace(…, &mut [])`, but that can just be `take`.
@rustbot
Copy link
Collaborator

rustbot commented Apr 21, 2023

r? @thomcc

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 21, 2023
@rustbot

This comment was marked as resolved.

@thomcc
Copy link
Member

thomcc commented Apr 21, 2023

LGTM

@bors r+

@bors
Copy link
Contributor

bors commented Apr 21, 2023

📌 Commit 8055bb8 has been approved by thomcc

It is now in the queue for this repository.

@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 Apr 21, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 21, 2023
Rollup of 5 pull requests

Successful merges:

 - rust-lang#110333 (rustc_metadata: Split `children` into multiple tables)
 - rust-lang#110501 (rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence)
 - rust-lang#110608 (Specialize some `io::Read` and `io::Write` methods for `VecDeque<u8>` and `&[u8]`)
 - rust-lang#110632 (Panic instead of truncating if the incremental on-disk cache is too big)
 - rust-lang#110633 (More `mem::take` in `library`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 482e407 into rust-lang:master Apr 21, 2023
11 checks passed
@rustbot rustbot added this to the 1.71.0 milestone Apr 21, 2023
@scottmcm scottmcm deleted the more-take branch April 21, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants