DEV Community

Discussion on: Adding our own custom statement to Rust language

Collapse
chayimfriedman2 profile image
Chayim Friedman

HIR doesn't contain jumps. MIR contains them. HIR is very similar to the AST, and is directly generated from (then converted to type-checked HIR during typeck). HIR desugars features like async/await (to generators), for and while let loops (to loop with breaks), if let to match, and more.