-
Notifications
You must be signed in to change notification settings - Fork 866
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
PreferSameLine brace_style with trailing_comma Vertical produces weird results #2321
Labels
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
only-with-option
requires a non-default option value to reproduce
poor-formatting
Comments
Confirming this is reproducible with Input pub trait FetchBuilderMessages
where
Self: Sized,
{
fn prepare(self) -> FetchCommandMessages;
} output pub trait FetchBuilderMessages
where
Self: Sized, { // <--- Note trailing comma is not removed from the bound
fn prepare(self) -> FetchCommandMessages;
} If someone is interested in taking this on, I'd start by checking out these lines in Lines 2872 to 2876 in a7bf009
|
@rustbot claim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
only-with-option
requires a non-default option value to reproduce
poor-formatting
Upgrading
rustfmt-nightly
from 0.2.15 to 0.3.4 created this change:This seems like a bug, since
trailing_comma = "Vertical"
should not trigger if the opening brace is on the same line.The text was updated successfully, but these errors were encountered: