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'm actually going to close this because it is a combination of correct/expected default behavior in the case of the comments after the attributes, and a known/existing bug on the incorrect default-vertical alignment of comments on the struct (which happens in some other item contexts too refs #4108).
If the underlying ask is for producing visual/vertical alignment of comments in this type of context, that's going to be a bit of a stretch. Whether that's something that needs a holistic solution or has to be addressed on a case by case basis (e.g. creating some new representation of line break delimited inner attributes), but I think that'd be best served as a separate investigation and not on a known bug
Structs get nice comment alignment:
becomes
however if we have some nicely aligned attribute comments as seen in cargo for example:
rustfmt completely butchers the alignment :(
The text was updated successfully, but these errors were encountered: