rustdoc: Fix hiding of private fields
The calculation for whether a field is public or private was tweaked in #13184, but I forgot to update rustdoc. Closes #13310
This commit is contained in:
parent
46e6194ee1
commit
2344c6c12d
@ -128,18 +128,12 @@ impl<'a> fold::DocFolder for Stripper<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
clean::ViewItemItem(..) => {
|
||||
clean::ViewItemItem(..) | clean::StructFieldItem(..) => {
|
||||
if i.visibility != Some(ast::Public) {
|
||||
return None
|
||||
}
|
||||
}
|
||||
|
||||
clean::StructFieldItem(..) => {
|
||||
if i.visibility == Some(ast::Private) {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
// handled below
|
||||
clean::ModuleItem(..) => {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user