mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
ff8c0ef0e4
MIR lowering for `if let` expressions is now more complicated now that `if let` exists in HIR. This PR adds a scope for the variables bound in an `if let` expression and then uses an approach similar to how we handle loops to ensure that we reliably drop the correct variables.