about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-17 17:53:15 +0000
committerbors <bors@rust-lang.org>2023-09-17 17:53:15 +0000
commit05666441bafd6010787a4097a6bd44266ad21018 (patch)
tree31b12431ea791129fc4331a588f91358bcfccfad /compiler/rustc_mir_transform/src/coverage/debug.rs
parent9d0ccf01a16f4ab72417a804c5a7414f312d95a0 (diff)
parenta961068504de97fca810d766d72a6ee913899a6e (diff)
downloadrust-05666441bafd6010787a4097a6bd44266ad21018.tar.gz
rust-05666441bafd6010787a4097a6bd44266ad21018.zip
Auto merge of #15625 - jDomantas:domantas/fix-15623, r=HKalbasi
fix: Don't skip closure captures after let-else

As I understand that `return` was left there by accident. It caused capture analysis to skip the rest of the block after a let-else, and then missed captures caused incorrect results in borrowck, closure hints, layout calculation, etc.

Fixes #15623

I didn't understand why I using the example from #15623 as-is doesn't work - I don't get the warnings unless I remove the `call_me()` call, even on the same commit as my own RA version which does show those warnings.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions