diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-08-23 22:22:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-23 22:22:22 +0200 |
| commit | 4d38062da118ec2e832f6d4b0700b4b62d65efda (patch) | |
| tree | b389ff03dedc16f6c171adb56249bdef36a9ef7a /compiler/rustc_codegen_llvm/src | |
| parent | a1cdd14062908617689d75851c187029e340d865 (diff) | |
| parent | 323e23005a6a2025508e6064a0f88dae09cfa127 (diff) | |
| download | rust-4d38062da118ec2e832f6d4b0700b4b62d65efda.tar.gz rust-4d38062da118ec2e832f6d4b0700b4b62d65efda.zip | |
Rollup merge of #145791 - samueltardieu:fix-zst-to-enum-mir-validation, r=compiler-errors
Fix ICE when validating transmuting ZST to inhabited enum MIR validation attempts to determine the number of bytes needed to represent the size of the source type to compute the discriminant for the inhabited target enum. For a ZST source, there is no source data to use as a discriminant so no proper runtime check can be generated. Since that should never be possible, insert a delayed bug to ensure the problem has been properly reported to the user by the type checker. Fixes rust-lang/rust#145786
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
