it turns out that after formatting weird_exprs from #7052 with comments, it no longer compiles.
The problem is that given a code like
trait /* 1 */ Trait /* 2 */ {}
rustfmt will turn this into trait Trait Trait which is invalid code
rustfmt --check output.rs
Diff in /tmp/fmt/2/output.rs:1:
-trait /* 1 */ Trait /* 2 */ {}
+trait Trait /* 1 */ Trait /* 2 */ {}
it turns out that after formatting weird_exprs from #7052 with comments, it no longer compiles.
The problem is that given a code like
trait /* 1 */ Trait /* 2 */ {}rustfmt will turn this into
trait Trait Traitwhich is invalid code