Yacin Tmimi
Yacin Tmimi
You said the code snippet was thousands of lines long, meaning that there's a ton of extra code in there that's unrelated to the issue. I'm looking for a well...
Thank you. I can confirm that with `rustfmt +1.85` I can reproduce the error, but I think this has been resolved in source (https://github.com/rust-lang/rustfmt/pull/6391), because when I build and run...
@Sorseg linking to the file is definitely useful. When you get a chance could you try to create a minimal test case that someone could use to reproduce the issue.
If you set `error_on_unformatted = true` you'll get some additional information about why this failed to format. The issue here is that rustfmt isn't expecting to find a comment between...
I believe we'd need to make adjustments in the `Rewrite for PatField` impl to address this, though my current recommendation would be to not write comments within struct fields: https://github.com/rust-lang/rustfmt/blob/e4944185ae09c99f59b460e358909f329010ea9c/src/patterns.rs#L385-L433
@msrd0 thanks for the report. What version of rustfmt are you using?
I believe this is related to https://github.com/rust-lang/rustfmt/issues/4757
Thanks for reaching out. This is a limitation of how rustfmt handles markdown. rustfmt has an extremely basic understanding of markdown constructs like headers, lists, blockquotes, and code blocks. Once...
Linking tracking issue for `wrap_comments` (#3347)
Linking the tracking issue for `group_imports` (#5083) and `imports_granularity` (#4991)