Skip to content

Commit 7e987c3

Browse files
committed
auto merge of #13173 : alexcrichton/rust/rustdoc-mods, r=huonw
... be stripped out" This reverts commit 7180b5d. 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
2 parents 29436d5 + 940bfb2 commit 7e987c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/passes.rs

Lines changed: 4 additions & 2 deletions
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)