-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Run rustfmt on build_helper #49360
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
Run rustfmt on build_helper #49360
Conversation
(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. |
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 |
☔ The latest upstream changes (presumably #49561) made this pull request unmergeable. Please resolve the merge conflicts. |
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 |
'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). |
@bors: r+ |
📌 Commit f5d0961 has been approved by |
🔒 Merge conflict |
f5d0961
to
23b880a
Compare
Rebased to resolve the conflict. |
@bors: r+ |
📌 Commit 23b880a has been approved by |
Run rustfmt on build_helper Using rustfmt 0.4.1-nightly (e784712 2018-04-09).
☀️ Test successful - status-appveyor, status-travis |
Using rustfmt 0.4.1-nightly (e784712 2018-04-09).