parent
b69cd73b7b
commit
370c9c54c2
@ -134,7 +134,18 @@ impl<'a> fold::DocFolder for Stripper<'a> {
|
|||||||
clean::StructItem(..) | clean::EnumItem(..) |
|
clean::StructItem(..) | clean::EnumItem(..) |
|
||||||
clean::TraitItem(..) | clean::FunctionItem(..) |
|
clean::TraitItem(..) | clean::FunctionItem(..) |
|
||||||
clean::VariantItem(..) | clean::MethodItem(..) |
|
clean::VariantItem(..) | clean::MethodItem(..) |
|
||||||
clean::ForeignFunctionItem(..) | clean::ForeignStaticItem(..) |
|
clean::ForeignFunctionItem(..) | clean::ForeignStaticItem(..) => {
|
||||||
|
if ast_util::is_local(i.def_id) {
|
||||||
|
if !self.exported_items.contains(&i.def_id.node) {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
// Traits are in exported_items even when they're totally private.
|
||||||
|
if i.is_trait() && i.visibility != Some(ast::Public) {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clean::ConstantItem(..) => {
|
clean::ConstantItem(..) => {
|
||||||
if ast_util::is_local(i.def_id) &&
|
if ast_util::is_local(i.def_id) &&
|
||||||
!self.exported_items.contains(&i.def_id.node) {
|
!self.exported_items.contains(&i.def_id.node) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user