70be327f2a
Small refactor in typeck - `check_impl_items_against_trait` only queries and walks through associated items once - extracted function that reports errors - don't check specialization validity when trait item does not match - small additional cleanups
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.