Open
Description
I wondered why suddenly only half of my file got formatted and boiled down the code to the following MWE:
fn main() {
match e { // this line still gets formatted
MyStruct {
field_a,
.. // this comment here apparently causes trouble
} => (),
_ => (), // this line is no longer formatted
};
}
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.