From d43701caa01003d9e0386fbd7a61d530e830564b Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 9 May 2021 13:18:28 -0700 Subject: [PATCH] Disable layout docs for type aliases for now There are issues with computing layout for type aliases; see #85103. Once the issues are fixed, we should re-enable layout docs for them. --- src/librustdoc/html/render/print_item.rs | 2 -- src/test/rustdoc/type-layout.rs | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index bde42371713..f0ca24b8f02 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -837,8 +837,6 @@ fn item_typedef(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::T // associated items from the aliased type (see discussion in #32077), but // we need #14072 to make sense of the generics. render_assoc_items(w, cx, it, def_id, AssocItemRender::All); - - document_type_layout(w, cx, def_id); } fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Union) { diff --git a/src/test/rustdoc/type-layout.rs b/src/test/rustdoc/type-layout.rs index 637e4aef3d6..272911de681 100644 --- a/src/test/rustdoc/type-layout.rs +++ b/src/test/rustdoc/type-layout.rs @@ -50,9 +50,5 @@ pub union Baz { // @has - '(unsized)' pub struct Unsized([u8]); -// @has type_layout/type.TypeAlias.html 'Size: ' -// @has - ' bytes' -pub type TypeAlias = X; - // @!has type_layout/trait.MyTrait.html 'Size: ' pub trait MyTrait {}