mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-22 04:50:36 +00:00

Make `compare_impl_item` into a query Turns `compare_impl_item` into a query (generalizing the existing query for `compare_impl_const`), and uses that in `Instance::resolve` to fail resolution when an implementation is incompatible with the trait it comes from. Fixes #119701 Fixes #121127 Fixes #121411 Fixes #129075 Fixes #129127 Fixes #129214 Fixes #131294
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.