Cleanup error handlers: round 5 More rustc_errors cleanups. A sequel to https://github.com/rust-lang/rust/pull/119171. r? ````@compiler-errors````
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.