mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-11 10:59:39 +00:00
Because it takes an error code after the span. This avoids the confusing overlap with the `DiagCtxt::struct_span_err` method, which doesn't take an error code.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.