Uh oh!
There was an error while loading. Please reload this page.
Run rustfmt on build_helper - #49360
Conversation
rust-highfive
commented
Mar 25, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
I really don't think this is an improvement. There are some rough conventions in rustc that these changes are inconsistent with (e.g. alignment for wrapped expressions). rustfmt is not the final word when it comes to correctness. I don't necessarily think we want strict style guidelines, but perhaps there should be some statement regarding reformatting, because this sort of pull request doesn't seem to be uncommon, but I think blindly running rustfmt throughout rustc is not the right thing to do. |
sinkuu
commented
Mar 28, 2018
Isn't "conventions in rustc" what rustfmt just used to have without consensus, and is being revised by formatting RFCs? This repository have been applied rustfmt some years ago: https://github.com/rust-lang/rust/pulls?page=3&q=is%3Apr+run+rustfmt+is%3Aclosed&utf8=%E2%9C%93 |
bors
commented
Apr 1, 2018
☔ The latest upstream changes (presumably #49561) made this pull request unmergeable. Please resolve the merge conflicts. |
topecongiro
commented
Apr 2, 2018
I thought the idea was to eventually replace the current tidy check with rustfmt, so incrementally running rustfmt is good, but this is not true anymore? r? @nrc |
nrc
commented
Apr 4, 2018
'replace tidy' is a bit complicated because it does stuff like the license check and iirc some test-specific stuff. However, we absolutely do want to be running rustfmt on the compiler and on CI, so landing PRs like this is desirable. (In the past they've been hard to review and land due to conflicts, so it might be better to just close the tree and reformat the world some day, but it is useful to find out how well rustfmt it performing in the meantime). |
nrc
commented
Apr 4, 2018
@bors: r+ |
bors
commented
Apr 4, 2018
📌 Commit f5d0961 has been approved by |
bors
commented
Apr 9, 2018
🔒 Merge conflict |
f5d0961 to
23b880aComparetopecongiro
commented
Apr 12, 2018
Rebased to resolve the conflict. |
nrc
commented
Apr 13, 2018
@bors: r+ |
bors
commented
Apr 13, 2018
📌 Commit 23b880a has been approved by |
bors
commented
Apr 13, 2018
Run rustfmt on build_helper Using rustfmt 0.4.1-nightly (e784712 2018-04-09).
bors
commented
Apr 13, 2018
☀️ Test successful - status-appveyor, status-travis |
Using rustfmt 0.4.1-nightly (e784712 2018-04-09).