auto merge of #13319 : alexcrichton/rust/rustdoc-fields, r=brson

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:
bors 2014-04-05 20:21:37 -07:00
commit 4e9e25907b

View File

@ -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(..) => {}