TIL that {:#?} will pretty-print a Debug type in Rust! I can throw away 10s of LOC! (via https://www.reddit.com/r/rust/comments/56sa70/what_do_you_wish_you_know_when_you_started/ )
miniblog.
Related Posts
Compiler error messages is such a deep topic. Even in rustc, a mature compiler that invests effort in diagnostic quality, I find interesting issues every few months.
(The majority have been fixed pretty quickly, so it's really rewarding to file issues.)
Difftastic 0.69 is out! This is a pretty big release:
* Semantically insignificant commas are now ignored
* Difftastic now respects .gitattributes
* Added assembly support and improved 13 other languages
Overall it seems like the Rust for Linux is making huge strides. Greg KH is super supportive of it[1] and the wider Linux community is pretty positive[2] (see all the quotes at the end of the slides).
1: https://lore.kernel.org/rust-for-linux/2025021954-flaccid-pucker-f7d9@gregkh/
2:
