Skip to content

clean up the borrowing in rustc_hir_pretty #98854

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

kadiwa4
Copy link
Contributor

@kadiwa4 kadiwa4 commented Jul 3, 2022

A whole lot of the &s and refs were redundant. I hope doing this in one big commit is fine, because all of the changes are pretty self-contained.

@rustbot label: +C-cleanup

a lot of the `&`s and `ref`s were redundant
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 3, 2022
@rust-highfive
Copy link
Contributor

r? @oli-obk

(rust-highfive has picked a reviewer for you, use r? to override)

@rustbot rustbot added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Jul 3, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Jul 4, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 4, 2022

📌 Commit 46ccde4 has been approved by oli-obk

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

Successful merges:

 - rust-lang#97300 (Implement `FusedIterator` for `std::net::[Into]Incoming`)
 - rust-lang#98761 (more `need_type_info` improvements)
 - rust-lang#98811 (Interpret: AllocRange Debug impl, and use it more consistently)
 - rust-lang#98847 (fix interpreter validity check on Box)
 - rust-lang#98854 (clean up the borrowing in rustc_hir_pretty)
 - rust-lang#98873 (Suggest `#[derive(Default)]` to enums with `#[default]`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6e5f1d4 into rust-lang:master Jul 5, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 5, 2022
@kadiwa4 kadiwa4 deleted the rustc_hir_pretty_clean_up_borrowing branch July 7, 2022 11:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants