mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
3f1c637db4
Trait predicate ambiguities are not always in `Self` When reporting ambiguities in trait predicates, the compiler incorrectly assumed the ambiguity was always in the type the trait should be implemented on, and never the generic parameters of the trait. This caused silly suggestions for predicates like `<KnownType as Trait<_>>`, such as giving explicit types to completely unrelated variables that happened to be of type `KnownType`. This also reverts #73027, which worked around this issue in some cases and does not appear to be necessary any more. fixes #77982 fixes #78055 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |