Rustfmt nightly 2020-11-16 now behaves weird

Running latest rustfmt silently removes my comment from the source code:

If I move that comment up a line (before extern "C" block) it stays - but that's not what I want to do.

Any ideas what change caused this and if this is intentional?

1 Like

This is rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4528

And it will be fixed in the next nightly.

1 Like

Thanks for confirmation!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.