mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-05 15:37:12 +00:00
- `emitted_at` isn't used outside the crate. - `code` and `messages` are public fields, so there's no point have trivial getters/setters for them. - `suggestions` is public, so the comment about "functionality on `Diagnostic`" isn't needed.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.