Skip to content

What's the rationale behind forbidding comments after an open bracket? #6502

Answered by ytmimi
rodrigocfd asked this question in Q&A
Discussion options

You must be logged in to vote

To be honest, I don't have a good answer for you. As long as I've been a member of the rustfmt team that's been the behavior. It might be that there was an intentional reason for this, but I don't have that context. It could also just be the result of how the formatting was implemented. For your reference there's an open issues for this #3255.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rodrigocfd
Comment options

Answer selected by rodrigocfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants