Skip to content

Commit 388a6b5

Browse files
cg_clif: just ignore all the unused LayoutS fields
1 parent 6f16da3 commit 388a6b5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/abi/comments.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,7 @@ pub(super) fn add_local_place_comments<'tcx>(
8080
return;
8181
}
8282
let TyAndLayout { ty, layout } = place.layout();
83-
let rustc_target::abi::LayoutS {
84-
size,
85-
align,
86-
repr_align: _,
87-
abi: _,
88-
variants: _,
89-
fields: _,
90-
largest_niche: _,
91-
} = layout.0.0;
83+
let rustc_target::abi::LayoutS { size, align, .. } = layout.0.0;
9284

9385
let (kind, extra) = place.debug_comment();
9486

0 commit comments

Comments
 (0)