Skip to content

Commit ec4f79f

Browse files
committed
rustdoc: Don't show reexported enum variants
For now just assume that the enum type itself is reexported.
1 parent 622c8f7 commit ec4f79f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/clean.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,9 @@ fn try_inline(id: ast::NodeId) -> Option<Vec<Item>> {
15711571
ret.extend(build_impls(tcx, did).move_iter());
15721572
build_type(tcx, did)
15731573
}
1574+
// Assume that the enum type is reexported next to the variant, and
1575+
// variants don't show up in documentation specially.
1576+
ast::DefVariant(..) => return Some(Vec::new()),
15741577
_ => return None,
15751578
};
15761579
let fqn = csearch::get_item_path(tcx, did);

0 commit comments

Comments
 (0)