Skip to content
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

rustfmt converts vertically aligned function call to hortizal aligned with new line #1171

Closed
srinivasreddy opened this issue Sep 26, 2016 · 3 comments

Comments

@srinivasreddy
Copy link
Contributor

srinivasreddy commented Sep 26, 2016

-        let obligation = traits::Obligation::misc(span,
-                                                  self.body_id,
-                                                  poly_trait_ref.to_predicate());
+        let obligation =
+            traits::Obligation::misc(span, self.body_id, poly_trait_ref.to_predicate());

https://github.com/rust-lang/rust/pull/36736/files/1d1168ccea6ee1ede476cefb424c384ba7904bb5#r80407232

another example is here:
https://github.com/rust-lang/rust/pull/36736/files/1d1168ccea6ee1ede476cefb424c384ba7904bb5#r80407292

and here too. https://github.com/rust-lang/rust/pull/36736/files/1d1168ccea6ee1ede476cefb424c384ba7904bb5#r80407395

@jseyfried
Copy link

I don't think this is a bug -- the new formatting looks better to me.

@nrc
Copy link
Member

nrc commented Oct 11, 2016

Yeah, I'm not sure which I prefer. We'll decide in the style process at some point, I guess.

@topecongiro
Copy link
Contributor

Closing because this is intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants