rustdoc: Don't show reexported enum variants

For now just assume that the enum type itself is reexported.
This commit is contained in:
Alex Crichton 2014-05-23 16:16:35 -07:00
parent 622c8f7b57
commit ec4f79ff6c

View File

@ -1571,6 +1571,9 @@ fn try_inline(id: ast::NodeId) -> Option<Vec<Item>> {
ret.extend(build_impls(tcx, did).move_iter());
build_type(tcx, did)
}
// Assume that the enum type is reexported next to the variant, and
// variants don't show up in documentation specially.
ast::DefVariant(..) => return Some(Vec::new()),
_ => return None,
};
let fqn = csearch::get_item_path(tcx, did);