-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Refactor pretty printing slightly #42897
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
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
Aaaand one of the osx builds did that thing where it doesn't start :( Restarting it... |
☔ The latest upstream changes (presumably #42902) made this pull request unmergeable. Please resolve the merge conflicts. |
@Mark-Simulacrum looks like this has conflicts that need resolving |
Okay, well, I resolved the conflicts but still need to rebase the branch -- I'll leave it as-is until I get a chance to do that... |
ccee223
to
75ce1b2
Compare
☔ The latest upstream changes (presumably #43115) made this pull request unmergeable. Please resolve the merge conflicts. |
No (intentional) changes to behavior. This is intended to avoid the anti-pattern of having to import individual methods throughout code.
The literal index was increased in only next_lit, so it isn't necessary: code now uses an iterator. The cur_cmnt field is also moved to be increased in print_comment instead of after each call to print_comment.
This is needless noise; the closure we take is FnOnce, so move || {} is fine to pass other parameters necessary.
75ce1b2
to
40f03a1
Compare
Rebased. |
r? @jseyfried |
Nice! |
📌 Commit 40f03a1 has been approved by |
…ried Refactor pretty printing slightly This doesn't introduce any functional changes (that I'm aware of). The primary intention here is to clean up the code a little. Each commit is intended to stand alone, reviewing commit-by-commit may be easiest.
☀️ Test successful - status-appveyor, status-travis |
This doesn't introduce any functional changes (that I'm aware of). The primary intention here is to clean up the code a little. Each commit is intended to stand alone, reviewing commit-by-commit may be easiest.