diff options
| author | bors <bors@rust-lang.org> | 2020-10-30 07:05:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-30 07:05:57 +0000 |
| commit | 8df58ae03a8fda8ed126c02fbc16b530d18344df (patch) | |
| tree | c0c78ef0211c49ea75eb27eccdd9441a017d81d9 /library/std/src | |
| parent | 0d33ab7af4aebe786410b4c10367eb6ddf13af0b (diff) | |
| parent | 8bf9abbb7b7321ed4014b7f0d9978e425c966c95 (diff) | |
| download | rust-8df58ae03a8fda8ed126c02fbc16b530d18344df.tar.gz rust-8df58ae03a8fda8ed126c02fbc16b530d18344df.zip | |
Auto merge of #78393 - SNCPlay42:match-if-guard, r=tmandry
Always record reference to binding in match if guards When encountering a binding from a `match` pattern in its `if` guard when computing a generator's interior types, we must always record the type of a reference to the binding because of how `if` guards are lowered to MIR. This was missed in #75213 because the binding in that test case was autorefed and we recorded that adjusted type anyway. Fixes #78366
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions
