about summary refs log tree commit diff
path: root/src/test/ui/drop/drop-if-let-binding.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-7/+0
2021-09-01Fix drop handling for `if let` expressionsMatthew Jasper-0/+7
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.