rust/compiler
bors a697573463 Auto merge of #101680 - jackh726:implied-cleanup, r=lcnr
Fix implied outlives bounds logic for projections

The logic here is subtly wrong. I put a bit of an explanation in a767d7b5165cea8ee5cbe494a4a636c50ef67c9c.

TL;DR: we register outlives predicates to be proved, because wf code normalizes projections (from the unnormalized types) to type variables. This causes us to register those as constraints instead of implied. This was "fine", because we later added that implied bound in the normalized type, and delayed registering constraints. When I went to cleanup `free_region_relations` to *not* delay adding constraints, this bug was uncovered.

cc. `@aliemjay` because this caused your test failure in #99832 (I only realized as I was writing this)

r? `@nikomatsakis`
2023-02-10 03:21:39 +00:00
..
2023-02-06 17:40:18 +03:00
2023-02-06 17:40:18 +03:00
2023-02-02 07:47:39 +01:00
2023-02-06 17:40:18 +03:00
2023-02-06 17:40:18 +03:00
2023-02-06 17:40:18 +03:00
2023-01-31 07:54:01 +00:00