mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 10:04:23 +00:00
0dab65b8a1
Make `InferCtxtExt::could_impl_trait` more precise, less ICEy The implementation for `InferCtxtExt::could_impl_trait` was very wrong. Along with being pretty poorly named, way too specific to ADTs, it was also doing impl substitution wrong -- this caused an ICE (#119915). This PR generalizes that code, gives it a clearer name, makes it stop using the new trait solver (lol), and fixes some fallout bad suggestions that are made worse with the code fix. Fixes #119915 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |