Skip to content

Recognize when a block comment has been ended inside a string literal… #4796

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

Merged

Conversation

ChinYing-Li
Copy link
Contributor

@ChinYing-Li ChinYing-Li commented Apr 12, 2021

Back-porting the change in #4320 to branch rustfmt-1.4.37.
This would fix #4312 and its duplicate, #4744 .
Any suggestion is appreciated!

@calebcartwright
Copy link
Member

Thank you for this, LGTM! Could you also do me a favor and add a file to cover another duplicate (#4806)?

@ChinYing-Li
Copy link
Contributor Author

I added the case in #4806 to issue-4312, as I think it is only a few lines and identical to one of the cases in issue-4312.

@calebcartwright
Copy link
Member

Thank you for adding the additional case! That's fine for now, but for future reference the preference is to either have file+issue specific pairs, or a separate file not named for any one issue if that file will contain cases from multiple issues

@calebcartwright calebcartwright changed the base branch from rustfmt-1.4.37 to rustfmt-1.4.38 April 22, 2021 02:29
Copy link
Member

@calebcartwright calebcartwright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

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.

2 participants