rust/compiler/rustc_trait_selection/src
Matthias Krüger 984767e500
Rollup merge of #123578 - lqd:regression-123275, r=compiler-errors
Restore `pred_known_to_hold_modulo_regions`

As requested by `@lcnr` in https://github.com/rust-lang/rust/issues/123275#issuecomment-2031885563 this PR restores `pred_known_to_hold_modulo_regions` to fix that "unexpected unsized tail" beta regression.

This also adds the reduced repro from https://github.com/rust-lang/rust/issues/123275#issuecomment-2041222851 as a sub-optimal test is better than no test at all, and it'll also cover #108721. It still ICEs on master, even though https://github.com/phlip9/rustc-warp-ice doesn't on nightly anymore, since https://github.com/rust-lang/rust/pull/122493.

Fixes #123275.

r? `@compiler-errors` but feel free to close if you'd rather have a better test instead
cc `@wesleywiser` who had signed up to do the revert

Will need a backport if we go with this PR: `@rustbot` label +beta-nominated
2024-04-08 22:06:23 +02:00
..
solve Actually create ranged int types in the type system. 2024-04-08 12:02:19 +00:00
traits Rollup merge of #123578 - lqd:regression-123275, r=compiler-errors 2024-04-08 22:06:23 +02:00
errors.rs Rename AddToDiagnostic as Subdiagnostic. 2024-03-11 10:04:49 +11:00
infer.rs Remove EvaluatedToErrStackDependent 2024-03-31 20:44:30 -04:00
lib.rs Check x86_64 size assertions on aarch64, too 2024-04-03 16:53:03 +11:00
regions.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00