diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-23 16:16:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-25 01:17:57 -0700 |
| commit | ec4f79ff6c997b4144a59fbfb145933c1e3ff593 (patch) | |
| tree | 4547b80add04ee87499d56aecfb890e7ec7347d8 | |
| parent | 622c8f7b57b70a61dc5c9a4b288ce5bf2ff8ac04 (diff) | |
| download | rust-ec4f79ff6c997b4144a59fbfb145933c1e3ff593.tar.gz rust-ec4f79ff6c997b4144a59fbfb145933c1e3ff593.zip | |
rustdoc: Don't show reexported enum variants
For now just assume that the enum type itself is reexported.
| -rw-r--r-- | src/librustdoc/clean.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs index 77b835b232d..94ccd3ac40e 100644 --- a/src/librustdoc/clean.rs +++ b/src/librustdoc/clean.rs @@ -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); |
