Skip to content

Commit d43701c

Browse files
committed
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.
1 parent 9b89d01 commit d43701c

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/librustdoc/html/render/print_item.rs

-2
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,6 @@ fn item_typedef(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::T
837837
// associated items from the aliased type (see discussion in #32077), but
838838
// we need #14072 to make sense of the generics.
839839
render_assoc_items(w, cx, it, def_id, AssocItemRender::All);
840-
841-
document_type_layout(w, cx, def_id);
842840
}
843841

844842
fn item_union(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::Union) {

src/test/rustdoc/type-layout.rs

-4
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,5 @@ pub struct GenericLifetimes<'a>(&'a str);
5050
// @has - '(unsized)'
5151
pub struct Unsized([u8]);
5252

53-
// @has type_layout/type.TypeAlias.html 'Size: '
54-
// @has - ' bytes'
55-
pub type TypeAlias = X;
56-
5753
// @!has type_layout/trait.MyTrait.html 'Size: '
5854
pub trait MyTrait {}

0 commit comments

Comments
 (0)