Files
rust/compiler/rustc_middle/src
Jonathan Brouwer 828e302c7b Rollup merge of #153105 - makai410:erase-if-error, r=lcnr
Compute the result of a projection type with region errors

Fixes: rust-lang/rust#152682

With the old trait solver, `type_known_to_meet_bound_modulo_regions()` isn't really operating "modulo regions" if there are any region errors, since `normalize` will just return a type error to the trait solver if given a ty with a region error, which then starts cascading when there are so many assumptions.

So I think it would be good to erase regions if there are any region errors before we normalize the type when collecting predicates for confirmation.

That said, I somehow feel like this is kind of ad-hoc... I'd really appreciate if someone more familiar with this code could take a closer look :3
2026-04-02 22:13:48 +02:00
..
2026-03-20 12:31:48 +03:00
2026-03-07 10:42:02 -08:00
2026-01-08 13:37:34 +11:00
2026-03-17 10:19:23 +05:00
2026-03-11 13:55:03 +01:00
…
…
2026-03-17 10:19:23 +05:00