diff options
| author | bors <bors@rust-lang.org> | 2022-09-15 15:19:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-15 15:19:40 +0000 |
| commit | 35a0407814a6b5a04f0929105631e9c69e293e9d (patch) | |
| tree | 8e8ab0230130faf7dbe38a997deb1cde8d019b18 /compiler/rustc_interface/src | |
| parent | 294f0eef736aa13cadf28ce7160a18a94ca7b87c (diff) | |
| parent | 4a5d2a561c6f82f928d6f14fe6e8f9ad2415b9a8 (diff) | |
| download | rust-35a0407814a6b5a04f0929105631e9c69e293e9d.tar.gz rust-35a0407814a6b5a04f0929105631e9c69e293e9d.zip | |
Auto merge of #101410 - dingxiangfei2009:fix-let-else-scoping, r=jackh726
Reorder nesting scopes and declare bindings without drop schedule Fix #99228 Fix #99975 Storages are previously not declared before entering the `else` block of a `let .. else` statement. However, when breaking out of the pattern matching into the `else` block, those storages are recorded as scheduled for drops. This is not expected. This MR fixes this issue by not scheduling the drops for those storages. cc `@est31`
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
