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:
commit
7e987c3490
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue