auto merge of #13173 : alexcrichton/rust/rustdoc-mods, r=huonw

... be stripped out"

This reverts commit 7180b5de44.

We don't particularly need this, I've never seen it clutter up the docs, it just seemed nice at the time. Sadly it caused a regression for reexported methods.

Closes #13091
This commit is contained in:
bors 2014-03-27 20:01:56 -07:00
commit 7e987c3490

View file

@ -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
}
@ -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) {