mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 22:48:04 +00:00
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. .
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.