diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-06-14 22:51:44 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-07-10 19:19:41 -0400 |
| commit | c858d345b3028c7c1b66f36291baea9ce52cad5f (patch) | |
| tree | 85eb2002ff3a52a0b3f9402881e5743883a73c70 | |
| parent | d1e764cb3bc961a4395164a36c4e0cfd57e681a1 (diff) | |
| download | rust-c858d345b3028c7c1b66f36291baea9ce52cad5f.tar.gz rust-c858d345b3028c7c1b66f36291baea9ce52cad5f.zip | |
cg_clif: just ignore all the unused LayoutS fields
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/abi/comments.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/abi/comments.rs b/compiler/rustc_codegen_cranelift/src/abi/comments.rs index 97f8452a468..ade6968de2b 100644 --- a/compiler/rustc_codegen_cranelift/src/abi/comments.rs +++ b/compiler/rustc_codegen_cranelift/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(); |
