You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wondered why suddenly only half of my file got formatted and boiled down the code to the following MWE:
fnmain(){match e {// this line still gets formattedMyStruct{
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.