-
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
Run rustfmt on libcore/sync folder #37218
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
unsafe { atomic_store(self.v.get(), val as u8, order); } | ||
unsafe { | ||
atomic_store(self.v.get(), val as u8, order); | ||
} |
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.
Hm, why does rustfmt put this on multiple lines...
unsafe { | ||
atomic_load(self.p.get() as *mut usize, order) as *mut T | ||
} | ||
unsafe { atomic_load(self.p.get() as *mut usize, order) as *mut T } |
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.
...but this on a single line?
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.
Semicolon versus no semicolon? rustfmt appears to avoid ; }
.
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.
Yeah, Rustfmt puts blocks which are expressions on one line, but not blocks of statements (even if just one)
@bors: r+ |
📌 Commit 5afd6d8 has been approved by |
Run rustfmt on libcore/sync folder
Run rustfmt on libcore/sync folder
No description provided.