Linus Torvalds Vents Over "Completely Crazy Rust Format Checking"

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Linus Torvalds criticized Rust's automated formatting tool (rustfmt) for making poor decisions about code organization in the Linux kernel. He specifically objected to the tool's heuristics for formatting 'use' statements, arguing that its compressed format makes future maintenance and conflict resolution harder. Torvalds prefers multi-line formatting that allows clean, single-line additions of new imports, and questions whether the Rust style guide's 'small items' rule is appropriate for independent use directives.

3m read timeFrom phoronix.com
Post cover image
7 Comments

Sort: