diff options
| author | bors <bors@rust-lang.org> | 2021-03-16 19:19:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-16 19:19:06 +0000 |
| commit | 846d4f0613c77955d1e613715d1267e791f85165 (patch) | |
| tree | 77b95d1fb7481f8090d5757fe90371617da74c6f /src/test/codegen/src-hash-algorithm | |
| parent | 1d57c3e1fb64f0e8446436ac2c414a10e563cdfa (diff) | |
| parent | 9d5daa6f45af3919f9bbc78b9e42daad5603d0f7 (diff) | |
| download | rust-846d4f0613c77955d1e613715d1267e791f85165.tar.gz rust-846d4f0613c77955d1e613715d1267e791f85165.zip | |
Auto merge of #82536 - sexxi-goose:handle-patterns-take-2, r=nikomatsakis
2229: Handle patterns within closures correctly when `capture_disjoint_fields` is enabled This PR fixes several issues related to handling patterns within closures when `capture_disjoint_fields` is enabled. 1. Matching is always considered a use of the place, even with `_` patterns 2. Compiler ICE when capturing fields in closures through `let` assignments To do so, we - Introduced new Fake Reads - Delayed use of `Place` in favor of `PlaceBuilder` - Ensured that `PlaceBuilder` can be resolved before attempting to extract `Place` in any of the pattern matching code Closes rust-lang/project-rfc-2229/issues/27 Closes rust-lang/project-rfc-2229/issues/24 r? `@nikomatsakis`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
