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 | f5d8117c338a788bd24abec733fd143dfceb25a0 (patch) | |
| tree | 7d7b09a0063f53177a087b6c3ae9e2fa2d2b0f87 /library/std/src/sys/unix/thread.rs | |
| parent | 1d6754d6eb1ac349477760a2afcd51cf75ac1a1c (diff) | |
| parent | 189d2065229944258fe8f621c5e1ec4386b637d4 (diff) | |
| download | rust-f5d8117c338a788bd24abec733fd143dfceb25a0.tar.gz rust-f5d8117c338a788bd24abec733fd143dfceb25a0.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 'library/std/src/sys/unix/thread.rs')
0 files changed, 0 insertions, 0 deletions
