Uh oh!
There was an error while loading. Please reload this page.
Rustfmt-ing librustc_front. - #29075
Conversation
rust-highfive
commented
Oct 15, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
BTW, I dislike the current formatting of struct literals/struct patterns. I'd even say it discourages their use somewhat.
Compare struct patterns and tuple patterns:
S { name, attrs, data, disr_expr } // those damn 3 extra spaces! I need to type them (okay, rustfmt solve this problem) and they shift the text closer to 100 character limit
S { .. } // even worse, 37.5% of unnecessary symbols
S(name, attrs, data, disr_expr) // nice
S(..) // nice
S{name, attrs, data, disr_expr} // almost as nice
S{..} // almost as nice
alexcrichton
commented
Oct 15, 2015
r? @nrc |
There was a problem hiding this comment.
We lose this comment, I imagine it is because the empty line comment is a doc comment, it should probably lose a /, then hopefully rustfmt won't screw this up. Needs a fixup.
nrc
commented
Oct 15, 2015
Just needs one fixup, r+ with that |
There was a problem hiding this comment.
I'm pretty sure the above is worse than original.
There was a problem hiding this comment.
bors
commented
Oct 17, 2015
☔ The latest upstream changes (presumably #29102) made this pull request unmergeable. Please resolve the merge conflicts. |
5dfa87e to
a09d94cComparegoyox86
commented
Oct 21, 2015
@nrc re-ran rustfmt again. Also added a manual fixup. |
There was a problem hiding this comment.
https://github.com/nrc/rustfmt/issues/508
This is causing build to fail
nrc
commented
Oct 21, 2015
Running rustfmt again undid your fixup. I think rather than just reinstating the deleted comment, you need to change the blank line comment from Annoyingly rustfmt has regressed some how and is now deleting a comma. |
bors
commented
Oct 26, 2015
☔ The latest upstream changes (presumably #29303) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
https://github.com/nrc/rustfmt/issues/539
Could you fix this manually for now please?
goyox86
commented
Nov 5, 2015
Closing this on favor of #29647 |
Hi Rustaceans!
This is the result of running latest rustfmt on librustc_front!
//cc @nrc