rust/compiler/rustc_trait_selection
Matthias Krüger 8afd63610b
Rollup merge of #152287 - jakubadamw:issue-137190, r=petrochenkov
Fix an ICE in the vtable iteration for a trait reference in const eval when a supertrait not implemented

compiler/rustc_trait_selection/src/traits/vtable.rs@`vtable_entries`:

The impossible predicates check in `vtable_entries` used `instantiate_own` which only includes the method's own `where` clauses, without the parent trait's bounds. Replace it with `instantiate_and_check_impossible_predicates` which also checks the trait ref itself, so unsatisfied supertrait bounds are caught and the method is marked `Vacant` instead of ICEing.

Closes rust-lang/rust#137190.
Closes rust-lang/rust#135470.
2026-02-09 18:39:41 +01:00
..
src Rollup merge of #152287 - jakubadamw:issue-137190, r=petrochenkov 2026-02-09 18:39:41 +01:00
Cargo.toml Convert to inline diagnostics in rustc_trait_selection 2026-02-05 16:58:59 +01:00