(cx: &CodegenCx<'tcx>, span: Span, ty: TyAndLayout<'tcx>)
| 599 | // the type is really more "Layout with Ty" (`.ty` field + `Deref`s to `Layout`). |
| 600 | fn trans_aggregate<'tcx>(cx: &CodegenCx<'tcx>, span: Span, ty: TyAndLayout<'tcx>) -> Word { |
| 601 | fn create_zst<'tcx>(cx: &CodegenCx<'tcx>, span: Span, ty: TyAndLayout<'tcx>) -> Word { |
| 602 | SpirvType::Adt { |
| 603 | def_id: def_id_for_spirv_type_adt(ty), |
| 604 | size: Some(Size::ZERO), |
| 605 | align: Align::from_bytes(0).unwrap(), |
| 606 | field_types: &[], |
| 607 | field_offsets: &[], |
| 608 | field_names: None, |
| 609 | } |
| 610 | .def_with_name(cx, span, TyLayoutNameKey::from(ty)) |
| 611 | } |
| 612 | match ty.fields { |
| 613 | FieldsShape::Primitive => span_bug!( |
| 614 | span, |
no test coverage detected