-
Notifications
You must be signed in to change notification settings - Fork 925
rustfmt fails to format a specific match statement #3206
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
Comments
A smaller example: fn foo(input: Option<usize>) -> usize {
match x {
_ =>
Err(Error::RuntimeError(
"cannot sum values on top of stack: the two topmost values on the stack should be numbers",
))
}
} Looks like rustfmt fails to format the entire |
@topecongiro |
@rgeorgiev583 there is also the option |
@topecongiro did you mean |
Adds regression tests for the following issues which seem to be fixed on master: Closes rust-lang#1762 Closes rust-lang#2201 Closes rust-lang#2388 Closes rust-lang#2672 Closes rust-lang#2755 Closes rust-lang#2947 Closes rust-lang#2978 Closes rust-lang#3148 Closes rust-lang#3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+.
Adds regression tests for the following issues which seem to be fixed on master: Closes rust-lang#1762 Closes rust-lang#2388 Closes rust-lang#2672 Closes rust-lang#2755 Closes rust-lang#2947 Closes rust-lang#2978 Closes rust-lang#3148 Closes rust-lang#3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+.
* Prune stale issues Adds regression tests for the following issues which seem to be fixed on master: Closes #1762 Closes #2388 Closes #2672 Closes #2755 Closes #2947 Closes #2978 Closes #3148 Closes #3206 @topecongiro @calebcartwright appologies for the large number of issues in this commit; if you prefer I can split it up into 2+. * fixup! Prune stale issues
I couldn't manage to isolate the specific bug in this case, so I'm going to provide the definition of the function containing the
match
statement as-is:rustfmt
seems to properly format that except for the whole outermostmatch
statement where the whitespace still remains garbled.The text was updated successfully, but these errors were encountered: