diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-08 22:06:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-08 22:06:21 +0200 |
| commit | 36d19154490443f8e6dcb101bc4fc28f9d3b87ea (patch) | |
| tree | 0b0bced549677ab5b0730a717d84d419730d7802 /tests/rustdoc-js-std/reference-shrink.js | |
| parent | 0e27c99332438857751675b9dd55375db067558c (diff) | |
| parent | ad0fcac72b4fbd5a6558fa1d440882156eafae33 (diff) | |
| download | rust-36d19154490443f8e6dcb101bc4fc28f9d3b87ea.tar.gz rust-36d19154490443f8e6dcb101bc4fc28f9d3b87ea.zip | |
Rollup merge of #123518 - compiler-errors:by-move-fixes, r=oli-obk
Fix `ByMove` coroutine-closure shim (for 2021 precise closure capturing behavior) This PR reworks the way that we perform the `ByMove` coroutine-closure shim to account for the fact that the upvars of the outer coroutine-closure and the inner coroutine might not line up due to edition-2021 closure capture rules changes. Specifically, the number of upvars may differ *and/or* the inner coroutine may have additional projections applied to an upvar. This PR reworks the information we pass into the `ByMoveBody` MIR visitor to account for both of these facts. I tried to leave comments explaining exactly what everything is doing, but let me know if you have questions. r? oli-obk
Diffstat (limited to 'tests/rustdoc-js-std/reference-shrink.js')
0 files changed, 0 insertions, 0 deletions
