about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-30 07:05:57 +0000
committerbors <bors@rust-lang.org>2020-10-30 07:05:57 +0000
commit8df58ae03a8fda8ed126c02fbc16b530d18344df (patch)
treec0c78ef0211c49ea75eb27eccdd9441a017d81d9 /compiler/rustc_parse/src
parent0d33ab7af4aebe786410b4c10367eb6ddf13af0b (diff)
parent8bf9abbb7b7321ed4014b7f0d9978e425c966c95 (diff)
downloadrust-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 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions