mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-15 16:58:02 +00:00

Use `&mut Diagnostic` instead of `&mut DiagnosticBuilder` unless needed This seems to be the established convention (02ff9e0) when `DiagnosticBuilder` was first added. I am guilty of introducing some of these.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.