mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-10 06:09:21 +00:00

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.