Skip to content

Commit

Permalink
Revert "Modules are either public, or private, so private modules sho…
Browse files Browse the repository at this point in the history
…uld be stripped out"

This reverts commit 7180b5d.
  • Loading branch information
alexcrichton committed Mar 27, 2014
1 parent 25e5238 commit 940bfb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/librustdoc/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ impl<'a> fold::DocFolder for Stripper<'a> {
}
}

clean::ViewItemItem(..) |
clean::ModuleItem(..) => {
clean::ViewItemItem(..) => {
if i.visibility != Some(ast::Public) {
return None
}
Expand All @@ -141,6 +140,9 @@ impl<'a> fold::DocFolder for Stripper<'a> {
}
}

// handled below
clean::ModuleItem(..) => {}

// trait impls for private items should be stripped
clean::ImplItem(clean::Impl{ for_: clean::ResolvedPath{ id: ref for_id, .. }, .. }) => {
if !self.exported_items.contains(for_id) {
Expand Down

2 comments on commit 940bfb2

@huonw
Copy link

@huonw huonw commented on 940bfb2 Mar 27, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@emberian
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p=1

Please sign in to comment.