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

Move comments after opening curly to a different line #4

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Jan 9, 2024

A bug in rustfmt rust-lang/rustfmt#3255 moves comments on the same line as opening curly to an incorrect place. Probably should not move it at all.

This PR moves all such occurrences found with the regex {\s+// to a line that makes sense. Then rustfmt will likely not touch them.

@jlapeyre jlapeyre merged commit 0dacb02 into main Jan 9, 2024
@jlapeyre jlapeyre mentioned this pull request Jan 9, 2024
@jlapeyre jlapeyre deleted the remove-bracket-comment branch January 23, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant