about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2021-09-01 22:52:17 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2021-09-01 23:47:41 +0100
commitff8c0ef0e47639b32fdba062851a1367a9cc9ae2 (patch)
tree65030b964b24d8c0ccaf02bd00f475bb09dfd179 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent50171c310cd15e1b2d3723766ce64e2e4d6696fc (diff)
downloadrust-ff8c0ef0e47639b32fdba062851a1367a9cc9ae2.tar.gz
rust-ff8c0ef0e47639b32fdba062851a1367a9cc9ae2.zip
Fix drop handling for `if let` expressions
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions