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

Delete duplicated helpers from HIR printer #91565

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Dec 5, 2021

These functions (cbox, nbsp, word_nbsp, head, bopen, space_if_not_bol, break_offset_if_not_bol, synth_comment, maybe_print_trailing_comment, print_remaining_comments) are duplicated with identical behavior across the AST printer and HIR printer, but are not specific to AST or HIR data structures.

@rust-highfive
Copy link
Collaborator

r? @jackh726

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2021
@rust-log-analyzer

This comment has been minimized.

@jackh726
Copy link
Member

jackh726 commented Dec 6, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Dec 6, 2021

📌 Commit 596e33a has been approved by jackh726

@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 Dec 6, 2021
@bors
Copy link
Contributor

bors commented Dec 6, 2021

⌛ Testing commit 596e33a with merge ba9fc4f...

@bors
Copy link
Contributor

bors commented Dec 6, 2021

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing ba9fc4f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 6, 2021
@bors bors merged commit ba9fc4f into rust-lang:master Dec 6, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 6, 2021
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ba9fc4f): comparison url.

Summary: This benchmark run did not return any relevant changes.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@dtolnay dtolnay deleted the printhelpers branch December 7, 2021 02:12
@dtolnay dtolnay added the A-pretty Area: Pretty printing. label Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pretty Area: Pretty printing. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants