Rust enums with discriminators greater than u64::MAX
are not encoded properly in debuginfo
#111600
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Rust enums with discriminators greater than
u64::MAX
are not encoded properly because LLVM lacks the appropriate APIs to do so. As a result, weassert!()
in some situations:rust/compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/native.rs
Lines 416 to 419 in 8006510
To fix this, we need APIs in LLVM to pass the correct value and have it be encoded in the DWARF.
Split off of #59509
The text was updated successfully, but these errors were encountered: