ea6ac450e2
Retire is_foreign_item query. This can be written in terms of `DefKind`. This does not deserve the cost of a query.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.