New Code Merged For Linux 6.18 To Address Linus Torvalds' Rust Formatting Critique
- Reference: 0001585428
- News link: https://www.phoronix.com/news/Linux-6.18-rc2-Rust
- Source link:
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