From 390a637e296ccfaac4c6abd1291b0523e8a8e00b Mon Sep 17 00:00:00 2001 From: hkalbasi Date: Mon, 7 Nov 2022 00:36:11 +0330 Subject: move things from rustc_target::abi to rustc_abi --- src/librustdoc/html/render/print_item.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index daaeee9e84b..acbe3f22889 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -1893,10 +1893,10 @@ fn document_non_exhaustive(w: &mut Buffer, item: &clean::Item) { fn document_type_layout(w: &mut Buffer, cx: &Context<'_>, ty_def_id: DefId) { fn write_size_of_layout(w: &mut Buffer, layout: &LayoutS, tag_size: u64) { - if layout.abi().is_unsized() { + if layout.abi.is_unsized() { write!(w, "(unsized)"); } else { - let bytes = layout.size().bytes() - tag_size; + let bytes = layout.size.bytes() - tag_size; write!(w, "{size} byte{pl}", size = bytes, pl = if bytes == 1 { "" } else { "s" },); } } -- cgit 1.4.1-3-g733a5