diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-08-23 18:22:38 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-08-23 19:25:58 +0200 |
| commit | 323e23005a6a2025508e6064a0f88dae09cfa127 (patch) | |
| tree | 29a08086269672d21f1436c1a4d7357da229de00 /compiler/rustc_interface/src | |
| parent | 6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff) | |
| download | rust-323e23005a6a2025508e6064a0f88dae09cfa127.tar.gz rust-323e23005a6a2025508e6064a0f88dae09cfa127.zip | |
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.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
