rust/compiler
bors 7cc8c44871 Auto merge of #89648 - nbdd0121:issue-89606, r=nikomatsakis
Ignore type of projections for upvar capturing

Fix #89606

Ignore type of projections for upvar capturing. Originally HashMap is used, and the hash/eq implementation of Place takes the type of projections into account. These types may differ by lifetime which causes #89606 to ICE.

I originally considered erasing regions but `place.ty()` is used when creating upvar tuple type, more than just serving as a key type, so I switched to a linear comparison with custom eq (`compare_place_ignore_ty`) instead.

r? `@wesleywiser`

`@rustbot` label +T-compiler
2021-10-11 21:39:11 +00:00
..
2021-10-10 15:38:19 +02:00
2021-10-08 19:32:16 +03:00
2021-10-10 19:59:36 +01:00
2021-10-10 15:38:19 +02:00
2021-10-11 08:11:30 +02:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00
2021-10-08 20:07:44 +02:00
2021-10-07 11:29:47 -07:00
2021-10-07 22:31:33 +02:00
2021-10-08 19:32:16 +03:00
2021-10-10 15:38:19 +02:00
2021-10-08 20:07:44 +02:00