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

5 comments on commit 940bfb2

@bors
Copy link
Contributor

@bors bors commented on 940bfb2 Mar 28, 2014

Choose a reason for hiding this comment

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

saw approval from huonw
at alexcrichton@940bfb2

@bors
Copy link
Contributor

@bors bors commented on 940bfb2 Mar 28, 2014

Choose a reason for hiding this comment

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

merging alexcrichton/rust/rustdoc-mods = 940bfb2 into auto

@bors
Copy link
Contributor

@bors bors commented on 940bfb2 Mar 28, 2014

Choose a reason for hiding this comment

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

alexcrichton/rust/rustdoc-mods = 940bfb2 merged ok, testing candidate = 7e987c3

@bors
Copy link
Contributor

@bors bors commented on 940bfb2 Mar 28, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 940bfb2 Mar 28, 2014

Choose a reason for hiding this comment

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

fast-forwarding master to auto = 7e987c3

Please sign in to comment.