Fix: don't document private macros by default

This commit is contained in:
inquisitivecrystal 2021-08-29 00:07:42 -07:00
parent 926f069950
commit 3ee6d0b6b6

View File

@ -40,6 +40,7 @@ impl<'a> DocFolder for Stripper<'a> {
| clean::UnionItem(..)
| clean::AssocConstItem(..)
| clean::TraitAliasItem(..)
| clean::MacroItem(..)
| clean::ForeignTypeItem => {
if i.def_id.is_local() {
if !self.access_levels.is_exported(i.def_id.expect_def_id()) {
@ -70,8 +71,8 @@ impl<'a> DocFolder for Stripper<'a> {
clean::ImplItem(..) => {}
// tymethods/macros have no control over privacy
clean::MacroItem(..) | clean::TyMethodItem(..) => {}
// tymethods have no control over privacy
clean::TyMethodItem(..) => {}
// Proc-macros are always public
clean::ProcMacroItem(..) => {}