mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-09 05:36:17 +00:00

Remove redundant check
We still check for `rustc_on_unimplemented` on implementations, but this functionality was removed in https://github.com/rust-lang/rust/pull/139091, since then it always returns `Ok` when called with a non-trait defid.
b4c8b0c3f0/compiler/rustc_trait_selection/src/error_reporting/traits/on_unimplemented.rs (L557-L564)
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.