Hide anonymous reexports in generated documentation

This commit is contained in:
Guillaume Gomez 2022-06-01 12:24:39 +02:00
parent d35d972e69
commit e160882721

View File

@ -286,8 +286,8 @@ fn visit_item(
self.visit_foreign_item(item, None, om);
}
}
// If we're inlining, skip private items.
_ if self.inlining && !is_pub => {}
// If we're inlining, skip private items or item reexported as "_".
_ if self.inlining && (!is_pub || renamed == Some(kw::Underscore)) => {}
hir::ItemKind::GlobalAsm(..) => {}
hir::ItemKind::Use(_, hir::UseKind::ListStem) => {}
hir::ItemKind::Use(path, kind) => {