Files
rust/tests/ui/specialization
Jonathan Brouwer c773ec0ba1 Rollup merge of #158404 - Dnreikronos:trait_solver/canonicalize_next_gen_regions, r=BoxyUwU,lcnr
trait_solver: normalize next-gen region constraints

fixes rust-lang/rust#157729

-zassumptions-on-binders can produce next-gen region constraints that mean the same thing but don't have the same shape. in this case object candidate merging stayed ambiguous and instance resolution later hit the ice. imo normalizing the constraint at the response boundary is the least weird place for this, because candidate selection shouldn't need to know which vtable looks nicer.

canonicalize and evaluate the next-gen region constraint before response canonicalization, then cover the dyn derived<p> supertrait case from the issue. lgtm locally with the focused test, tests/ui/traits/next-solver, and tests/ui/assumptions_on_binders. idk if there's a better home for the helper call, but ltm this keeps the fix pretty narrow.
2026-08-10 19:01:58 +02:00
..
2026-06-11 06:31:12 +05:30
2026-03-30 20:39:42 +00:00
…

This directory contains the test for incorrect usage of specialization that should lead to compile failure. Those tests break down into a few categories: