mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-16 01:06:39 +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.