-
Notifications
You must be signed in to change notification settings - Fork 925
2.0.0-rc.2 formatting regression with line-wrapped functions #4366
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
ayazhafiz
added a commit
to ayazhafiz/rustfmt
that referenced
this issue
Aug 6, 2020
rust-lang#3891 removed Version One formatting that did this correctly (https://github.com/rust-lang/rustfmt/pull/3891/files#diff-5db152a52bdaeae9dacd35f43a4a78ddL2342-L2344), but at seemingly at the time there were no tests to catch the regression. This commit fix-forwards the formatting regression, though via a different implementation because the original implementation would muddle the branch for visual indentation and this fix, which is probably not preferrable giving the existing complexity of the rewrite_required_fn method. Closes rust-lang#4366
ayazhafiz
added a commit
to ayazhafiz/rustfmt
that referenced
this issue
Aug 6, 2020
rust-lang#3891 removed Version One formatting that did this correctly (https://github.com/rust-lang/rustfmt/pull/3891/files#diff-5db152a52bdaeae9dacd35f43a4a78ddL2342-L2344), but at seemingly at the time there were no tests to catch the regression. This commit fix-forwards the formatting regression, though via a different implementation because the original implementation would muddle the branch for visual indentation and this fix, which is probably not preferrable giving the existing complexity of the rewrite_required_fn method. Closes rust-lang#4366
ayazhafiz
added a commit
to ayazhafiz/rustfmt
that referenced
this issue
Aug 6, 2020
rust-lang#3891 removed Version One formatting that did this correctly (https://github.com/rust-lang/rustfmt/pull/3891/files#diff-5db152a52bdaeae9dacd35f43a4a78ddL2342-L2344), but at seemingly at the time there were no tests to catch the regression. This commit fix-forwards the formatting regression, though via a different implementation because the original implementation would muddle the branch for visual indentation and this fix, which is probably not preferrable giving the existing complexity of the rewrite_required_fn method. Closes rust-lang#4366
calebcartwright
pushed a commit
that referenced
this issue
Aug 7, 2020
* Indent return types separated from params by newline #3891 removed Version One formatting that did this correctly (https://github.com/rust-lang/rustfmt/pull/3891/files#diff-5db152a52bdaeae9dacd35f43a4a78ddL2342-L2344), but at seemingly at the time there were no tests to catch the regression. This commit fix-forwards the formatting regression, though via a different implementation because the original implementation would muddle the branch for visual indentation and this fix, which is probably not preferrable giving the existing complexity of the rewrite_required_fn method. Closes #4366 * fixup! Indent return types separated from params by newline
ahl
added a commit
to oxidecomputer/dropshot
that referenced
this issue
Aug 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input
Output
Expected output
Meta
The text was updated successfully, but these errors were encountered: