about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhkalbasi <hamidrezakalbasi@protonmail.com>2022-11-07 00:36:11 +0330
committerhkalbasi <hamidrezakalbasi@protonmail.com>2022-11-24 16:26:13 +0330
commit390a637e296ccfaac4c6abd1291b0523e8a8e00b (patch)
treee142a6d3e6c7619782f0c682242f2f5cb440c1b4 /src
parent27fb904d680996fe48e04aef65d4d655bdab843b (diff)
downloadrust-390a637e296ccfaac4c6abd1291b0523e8a8e00b.tar.gz
rust-390a637e296ccfaac4c6abd1291b0523e8a8e00b.zip
move things from rustc_target::abi to rustc_abi
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/render/print_item.rs4
1 files changed, 2 insertions, 2 deletions
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<VariantIdx>, 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" },);
         }
     }