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 removes comments between keyword and { #1911

Closed
real-or-random opened this issue Aug 23, 2017 · 0 comments
Closed

rustfmt removes comments between keyword and { #1911

real-or-random opened this issue Aug 23, 2017 · 0 comments
Labels
a-comments bug Panic, non-idempotency, invalid code, etc.

Comments

@real-or-random
Copy link

> rustfmt --write-mode diff test.rs
Diff in /tmp/test.rs at line 1:
-impl X⏎
-// Comment⏎
-{⏎
-⏎
-}⏎
+impl X {}⏎

This does not happen only with impl but also with fn for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-comments bug Panic, non-idempotency, invalid code, etc.
Projects
None yet
Development

No branches or pull requests

2 participants