We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25e5238 commit 940bfb2Copy full SHA for 940bfb2
src/librustdoc/passes.rs
@@ -128,8 +128,7 @@ impl<'a> fold::DocFolder for Stripper<'a> {
128
}
129
130
131
- clean::ViewItemItem(..) |
132
- clean::ModuleItem(..) => {
+ clean::ViewItemItem(..) => {
133
if i.visibility != Some(ast::Public) {
134
return None
135
@@ -141,6 +140,9 @@ impl<'a> fold::DocFolder for Stripper<'a> {
141
140
142
143
+ // handled below
144
+ clean::ModuleItem(..) => {}
145
+
146
// trait impls for private items should be stripped
147
clean::ImplItem(clean::Impl{ for_: clean::ResolvedPath{ id: ref for_id, .. }, .. }) => {
148
if !self.exported_items.contains(for_id) {
0 commit comments