This reverts commit 18bb8c61a9, reversing changes made to d9baa36190.
18bb8c61a9
d9baa36190
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.