-
Notifications
You must be signed in to change notification settings - Fork 925
Deleted comments in type aliases #5297
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
Comments
Thanks for the report! It's likely that rustfmt isn't expecting to find a comment there, and isn't looking out for it when reformatting the code. |
The issue can be tracked down to the Lines 805 to 812 in 7d6ca7c
From what I can tell There's no straightforward way to fix this since we lose all Span information once we call |
Note that the inline comments on array lengths had to be moved to out-of-line doc comments as `rustfmt` deletes them (bug tracked in rust-lang/rustfmt#5297).
Note that the inline comments on array lengths had to be moved to out-of-line doc comments as `rustfmt` deletes them (bug tracked in rust-lang/rustfmt#5297).
Some inline comments in type alias declarations are removed during formatting.
Steps to reproduce:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: