Skip to content

Commit 940bfb2

Browse files
committed
Revert "Modules are either public, or private, so private modules should be stripped out"
This reverts commit 7180b5d.
1 parent 25e5238 commit 940bfb2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/passes.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ impl<'a> fold::DocFolder for Stripper<'a> {
128128
}
129129
}
130130

131-
clean::ViewItemItem(..) |
132-
clean::ModuleItem(..) => {
131+
clean::ViewItemItem(..) => {
133132
if i.visibility != Some(ast::Public) {
134133
return None
135134
}
@@ -141,6 +140,9 @@ impl<'a> fold::DocFolder for Stripper<'a> {
141140
}
142141
}
143142

143+
// handled below
144+
clean::ModuleItem(..) => {}
145+
144146
// trait impls for private items should be stripped
145147
clean::ImplItem(clean::Impl{ for_: clean::ResolvedPath{ id: ref for_id, .. }, .. }) => {
146148
if !self.exported_items.contains(for_id) {

0 commit comments

Comments
 (0)