diff options
| author | Celina G. Val <celinval@amazon.com> | 2023-10-26 20:10:54 -0700 |
|---|---|---|
| committer | Celina G. Val <celinval@amazon.com> | 2023-10-26 20:17:44 -0700 |
| commit | 613e6181a66e572abd7b980931d08c74c480967d (patch) | |
| tree | 4a75c3b44413b6f81fd3f67763b1184031d8edc7 /compiler/rustc_interface/src/errors.rs | |
| parent | ab5c841a1f3c09edc5ea07722519627c960aed17 (diff) | |
| download | rust-613e6181a66e572abd7b980931d08c74c480967d.tar.gz rust-613e6181a66e572abd7b980931d08c74c480967d.zip | |
Specialize ZeroSized constants
ZeroSized constants can be represented as `mir::Const::Val` even if their layout is not yet known. In those cases, CrateItem::body() was crashing when trying to convert a `ConstValue::ZeroSized` into its stable counterpart `ConstantKind::Allocated`. Instead, we now map `ConstValue::ZeroSized` into a new variant: `ConstantKind::ZeroSized`.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
