We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e6194 commit 2344c6cCopy full SHA for 2344c6c
src/librustdoc/passes.rs
@@ -128,18 +128,12 @@ impl<'a> fold::DocFolder for Stripper<'a> {
128
}
129
130
131
- clean::ViewItemItem(..) => {
+ clean::ViewItemItem(..) | clean::StructFieldItem(..) => {
132
if i.visibility != Some(ast::Public) {
133
return None
134
135
136
137
- clean::StructFieldItem(..) => {
138
- if i.visibility == Some(ast::Private) {
139
- return None;
140
- }
141
142
-
143
// handled below
144
clean::ModuleItem(..) => {}
145
0 commit comments