-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
(Mostly) finish formatting the repository #67596
Conversation
rustfmt tries its best already, we should not fight with it.
Use #[rustfmt::skip] on the tidy-parsed macro invocations
@bors r+ p=200 rollup=never |
📌 Commit 8d6d0e7 has been approved by |
(Mostly) finish formatting the repository Silences tidy line length warnings on rustfmt-controlled files. This leaves two things out of formatting: CloudABI (mostly because it's not really ours to control, it's upstream code that's mostly generated), and tests. The latter is a hard problem and maybe not one to worry too much about, we rarely edit old tests and reformatting them as we go if possible isn't too bad (they're generally small).
☀️ Test successful - checks-azure |
// An extern type at offset 0, we fall back to its static alignment. | ||
// FIXME: Once we have made decisions for how to handle size and alignment | ||
// of `extern type`, this should be adapted. It is just a temporary hack | ||
// to get some code to work that probably ought to work. | ||
{ | ||
field_layout.align.abi | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty odd, in particular with the comment... any chance we could set match_arm_blocks = false
to avoid this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we're trying to stay as close to defaults as possible, but I would personally not be opposed to such.
Silences tidy line length warnings on rustfmt-controlled files.
This leaves two things out of formatting: CloudABI (mostly because it's not really ours to control, it's upstream code that's mostly generated), and tests. The latter is a hard problem and maybe not one to worry too much about, we rarely edit old tests and reformatting them as we go if possible isn't too bad (they're generally small).