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