mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 05:59:39 +00:00
A trait's local impls are trivially coherent if there are no impls. This avoids creating a dependency edge on the hir or the specialization graph This may resolve part of the performance issue of https://github.com/rust-lang/rust/pull/120558
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.