rust/compiler
bors 8df58ae03a 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
2020-10-30 07:05:57 +00:00
..
2020-09-11 09:37:51 -07:00
2020-10-27 18:14:21 +01:00
2020-10-29 16:51:46 +01:00
2020-10-29 16:51:46 +01:00
2020-10-20 16:42:51 +02:00
2020-10-29 16:51:46 +01:00
2020-10-29 16:51:46 +01:00
2020-09-23 21:51:56 +02:00
2020-09-23 21:51:56 +02:00
2020-09-23 21:51:56 +02:00
2020-09-23 21:51:56 +02:00
2020-10-16 12:58:50 -04:00