-
Notifications
You must be signed in to change notification settings - Fork 850
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
rustfmt stops formatting after line comment following ..
in a struct pattern
#6040
Comments
..
in a match statement..
in a struct pattern
The issue here is that In order to resolve this one we might consider taking a similar approach to intput: fn main() {
let x = MyStruct {
field_a,
.. // this comment here apparently causes trouble
};
} output: fn main() {
let x = MyStruct {
field_a,
.. // this comment here apparently causes trouble
};
} |
I wondered why suddenly only half of my file got formatted and boiled down the code to the following MWE:
Notably,
rustfmt
does not complain, it just ignores everything after the offending comment and formats the file only up to that point.I saw that there are already many open issues revolving around comments, so my apologies if this exact issue has been reported before.
The text was updated successfully, but these errors were encountered: