-
Notifications
You must be signed in to change notification settings - Fork 56
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
Dealing with comments, and more specifically, around keywords #191
Comments
Speaking for myself here: I don't think there are any circumstances under which rustfmt should ever delete a comment. |
Yeah, also speaking as an individual: I think rustfmt deleting any comments is a bug. If there are positions that we want to especially discourage comments, rustfmt can move them instead. I also think that comments can be moved as part of formatting lines or fixing indentation. |
This was discussed in our meeting today, very brief summary:
|
There's a rustfmt PR that I started a while ago that hasn't received much traction since it was marked blocked pending t-style's decision. To my understanding, there have been these concerns:
This has been discussed on Zulip previously. AFAIK there were no "official" decisions that came out of the discussion, so I'd like to formally raise an issue here.
I realize that some of these questions above feel somewhat out of scope, and I just wanted to make it clear that "this is not within the scope of t-style" is a totally appropriate response. I really just want to unblock my PR, since it is really elegant..
Here's also a small example:
Is currently formatted by
rustfmt
as:Deleting the comments. cc @rust-lang/rustfmt
The text was updated successfully, but these errors were encountered: