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:
parent
9b89d01bbb
commit
d43701caa0
@ -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) {
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user