about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-20 16:17:19 +0530
committerGitHub <noreply@github.com>2022-07-20 16:17:19 +0530
commiteecfdfb8a12367cb292a85b6a30981eb35a56379 (patch)
tree5450ed5b247533c39a063456dbc71de8e2156f78 /compiler/rustc_codegen_llvm/src/common.rs
parent3c3c5da9adfdf308b5189b8034c07e0dc5492a54 (diff)
parent64dc377a103c0d377b3e60e08d29f69fcf7ba2c5 (diff)
downloadrust-eecfdfb8a12367cb292a85b6a30981eb35a56379.tar.gz
rust-eecfdfb8a12367cb292a85b6a30981eb35a56379.zip
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
0 files changed, 0 insertions, 0 deletions