Fix: don't document private macros by default
This commit is contained in:
parent
926f069950
commit
3ee6d0b6b6
1 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@ impl<'a> DocFolder for Stripper<'a> {
|
||||||
| clean::UnionItem(..)
|
| clean::UnionItem(..)
|
||||||
| clean::AssocConstItem(..)
|
| clean::AssocConstItem(..)
|
||||||
| clean::TraitAliasItem(..)
|
| clean::TraitAliasItem(..)
|
||||||
|
| clean::MacroItem(..)
|
||||||
| clean::ForeignTypeItem => {
|
| clean::ForeignTypeItem => {
|
||||||
if i.def_id.is_local() {
|
if i.def_id.is_local() {
|
||||||
if !self.access_levels.is_exported(i.def_id.expect_def_id()) {
|
if !self.access_levels.is_exported(i.def_id.expect_def_id()) {
|
||||||
|
@ -70,8 +71,8 @@ impl<'a> DocFolder for Stripper<'a> {
|
||||||
|
|
||||||
clean::ImplItem(..) => {}
|
clean::ImplItem(..) => {}
|
||||||
|
|
||||||
// tymethods/macros have no control over privacy
|
// tymethods have no control over privacy
|
||||||
clean::MacroItem(..) | clean::TyMethodItem(..) => {}
|
clean::TyMethodItem(..) => {}
|
||||||
|
|
||||||
// Proc-macros are always public
|
// Proc-macros are always public
|
||||||
clean::ProcMacroItem(..) => {}
|
clean::ProcMacroItem(..) => {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue