mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-12 05:20:38 +00:00
Formalize defining_use_anchor This tackles issue #57961 Introduces new enum called `DefiningAnchor` that replaces `Option<LocalDefId>` of `defining_use_anchor`. Now every use of it is explicit and exhaustively matched, catching errors like one in the linked issue. This is not a perfect fix but it's a step in the right direction. r? `@oli-obk`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.