rust/compiler/rustc_borrowck
Dylan DPC eecfdfb8a1
Rollup merge of #99383 - ouz-a:issue_57961, r=oli-obk
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`
2022-07-20 16:17:19 +05:30
..
src Rollup merge of #99383 - ouz-a:issue_57961, r=oli-obk 2022-07-20 16:17:19 +05:30
Cargo.toml Rollup merge of #98415 - compiler-errors:rustc-borrowck-session-diagnostic-1, r=davidtwco 2022-06-29 17:59:31 +05:30