opt_local_def_id_to_hir_id
opt_hir_node_by_def_id
Also replace a few `hir_node()` calls with `hir_node_by_def_id()`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.