VOOZH about

URL: https://www.phoronix.com/news/Linux-6.18-rc2-Rust

⇱ New Code Merged For Linux 6.18 To Address Linus Torvalds' Rust Formatting Critique - Phoronix


👁 Phoronix

New Code Merged For Linux 6.18 To Address Linus Torvalds' Rust Formatting Critique

Written by Michael Larabel in Linux Kernel on 18 October 2025 at 04:43 PM EDT. 20 Comments
Back during the Linux 6.18 merge window Linus Torvalds commented on "mindless and completely crazy Rust format checking" and that the RUst format checking "is all bass-ackwards garbage" with condensing multi-line import statements into single lines. Merged minutes ago to Linux Git ahead of tomorrow's Linux 6.18-rc2 are fixes to the Rust format checking and updated guidelines to address Torvalds' criticism.

Rust for Linux lead developer Miguel Ojeda commented with today's Rust for Linux 6.18 updates that have been merged:
"Rust 'rustfmt' cleanup

'rustfmt', by default, formats imports in a way that is prone to conflicts while merging and rebasing, since in some cases it condenses several items into the same line.

Document in our guidelines that we will handle this for the moment with the trailing empty comment workaround and make the tree 'rustfmt'-clean again"

The rustfmt update and updated guidance in the documentation should address the criticism raised by Torvalds back during the Linux 6.18 merge window to make the Rust code smoother moving forward:

👁 updated Linux Rust documentation


Look for this clean-up in tomorrow's Linux 6.18-rc2 release.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.