type_of
This ensures that various wf checks have already been done before we typeck item bodies.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.