mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
4f6837edbd
Avoid ICE in explicit reference cast suggestion for unrelated leaf pr… Fixes rust-lang/rust#154403 The explicit reference cast suggestion in was enabled based on `main_trait_predicate` being `From`/`TryFrom`, but it then extracted the source type from `leaf_trait_predicate`. That is only valid when the leaf obligation is also part of the `From`/`TryFrom` conversion family.