提交 7180b5de 编写于 作者: J James Miller

Modules are either public, or private, so private modules should be stripped out

上级 9e89ffc6
......@@ -128,7 +128,8 @@ fn fold_item(&mut self, i: Item) -> Option<Item> {
}
}
clean::ViewItemItem(..) => {
clean::ViewItemItem(..) |
clean::ModuleItem(..) => {
if i.visibility != Some(ast::Public) {
return None
}
......@@ -140,9 +141,6 @@ fn fold_item(&mut self, i: Item) -> Option<Item> {
}
}
// 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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册