-
Notifications
You must be signed in to change notification settings - Fork 888
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
Multiline comments ending in " lead to creation of line with only spaces #4312
Comments
This seems to happen iff the comment is a Putting two such comments in sequence leads to another "fun" bug: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=70c8eb3ed7416f5101dd5297cdd8c005 🙂 This is probably simple to fix since it seems to be such a specific case, but we should check if it's repro on master. |
It seems to be when it contains precisely one |
backport was done in #4796 |
Input
Output
(notice the blank line between the comment and the println, containing 4 spaces.
Expected output
Input unchanged.
Meta
rustfmt 1.4.16-stable (939e164 2020-06-11)
The text was updated successfully, but these errors were encountered: