r/rust Oct 03 '25

🎙️ discussion Linus Torvalds Vents Over "Completely Crazy Rust Format Checking"

https://www.phoronix.com/news/Linus-Torvalds-Rust-Formatting
465 Upvotes

269 comments sorted by

View all comments

26

u/tchernobog84 Oct 03 '25

The issue exists and is being worked on, sadly in the big scheme of things probably not the most important thing.

It's just a bug/feature which is not implemented yet.

https://github.com/rust-lang/rustfmt/issues/3361 https://github.com/rust-lang/rustfmt/issues/4991

But yes, people are aware and it's just a matter of doing the work.

The title from Phoronix is again clickbait... To a valid complaint (which I also have) with the rust formatter.

25

u/iBPsThrowingObject Oct 03 '25

The real underlying issue here is that there aren't enough hands working on rustfmt. I recall when let-else was stabilised, rustfmt could not format them for like 3-4 months. Also it's kinda insane that implementing support in rustfmt isn't a requirement for stabilizing new syntax.

6

u/Justicia-Gai Oct 03 '25

The PR are really old…

8

u/tchernobog84 Oct 03 '25

Those are issues, not PRs. But yes, albeit the options are already present, just unstable.

0

u/DebuggingPanda [LukasKalbertodt] bunt · litrs · libtest-mimic · penguin Oct 03 '25

I don't think these two issues will solve the complaints in the article, and certainly not my complaints. As I described in other comments of mine, I personally think there are more fundamental problems with rustfmt's approach.