rust/compiler/rustc_hir_analysis
Gurinder Singh 23a3b9e449 Fix suggestion span involving wrongly placed generic arg on enum variants
When the variant and the (wrongly placed) args are at separate
source locations such as being in different macos or one in a macro and
the other somwhere outside of it, the arg spans we computed spanned
the entire distance between such locations and were hence invalid.
.
2023-10-09 08:04:00 +05:30
..

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.