miniblog.
← Back to all posts
Wilfred Hughes
Jul 9, 2016 at 09:47
When class is a reserved word, it's common to see klass as a var name. Amusingly, rustc has krate variables too!
https://github.com/rust-lang/rust/commit/34ffe3cc1c1c9855ecb47479761d812f64436c85
rustc: support dumping the AST as JSON · rust-lang/rust@34ffe3c
This is mostly useful for working on rustc, when one is unfamiliar with the AST a particular construct will produce. It's a -Z flag as it's very much for debugging. Closes #10485