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.
This commit is contained in:
Camelid 2021-05-09 13:18:28 -07:00
parent 9b89d01bbb
commit d43701caa0
2 changed files with 0 additions and 6 deletions

View File

@ -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) {

View File

@ -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 {}