cg_clif: just ignore all the unused LayoutS fields

This commit is contained in:
Erik Desjardins 2023-06-14 22:51:44 -04:00
parent 6f16da3ee7
commit 388a6b5835

View File

@ -80,15 +80,7 @@ pub(super) fn add_local_place_comments<'tcx>(
return;
}
let TyAndLayout { ty, layout } = place.layout();
let rustc_target::abi::LayoutS {
size,
align,
repr_align: _,
abi: _,
variants: _,
fields: _,
largest_niche: _,
} = layout.0.0;
let rustc_target::abi::LayoutS { size, align, .. } = layout.0.0;
let (kind, extra) = place.debug_comment();