News: 0001585428

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([Linux Kernel] 77 Minutes Ago rustfmt)


Back during the Linux 6.18 merge window Linus Torvalds commented on " [1]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 [2]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:

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



[1] https://www.phoronix.com/news/Linus-Torvalds-Rust-Formatting

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1c64efcb083c48c85227cb4d72ab137feef2cdac



It is a period of system war. User programs, striking from a hidden
directory, have won their first victory against the evil Administrative
Empire. During the battle, User spies managed to steal secret source code to
the Empire's ultimate program: the Are-Em Star, a privileged root program with
enough power to destroy an entire file structure. Pursued by the Empire's
sinister audit trail, Princess _LPA0 races ~ aboard her shell script,
custodian of the stolen listings that could save her people, and restore
freedom and games to the network...
-- DECWARS