about summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2023-06-14 22:51:44 -0400
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2023-07-10 19:19:41 -0400
commit388a6b58352feb9846ea26c6dd805225243c4acb (patch)
tree494e1e1b7e39e4a383aeb2b093ebfad6e3516d12
parent6f16da3ee782a4c293435196bd3474a87bdf9851 (diff)
downloadrust-388a6b58352feb9846ea26c6dd805225243c4acb.tar.gz
rust-388a6b58352feb9846ea26c6dd805225243c4acb.zip
cg_clif: just ignore all the unused LayoutS fields
-rw-r--r--src/abi/comments.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/abi/comments.rs b/src/abi/comments.rs
index 97f8452a468..ade6968de2b 100644
--- a/src/abi/comments.rs
+++ b/src/abi/comments.rs
@@ -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();