rust/compiler
Celina G. Val 613e6181a6 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`.
2023-10-26 20:17:44 -07:00
..
2023-10-25 16:18:57 +00:00
2023-10-26 20:17:44 -07:00
2023-10-25 16:18:57 +00:00
2023-10-26 20:17:44 -07:00