mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-22 19:27:22 +00:00
Remove some uses of `guess_head_span`
That function cuts a span at the first occurrence of `{`. Using `def_span` is almost always more precise.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.