Skip to content

Private macros are documented #88453

Closed
@dylni

Description

@dylni

Code

I tried this code:

macro_rules! private_macro {
    () => {};
}

I expected to see this happen: private_macro is hidden from the documentation.

Instead, this happened: private_macro is shown in the documentation and has its own page. Private declarative macros are also shown.

Version it worked on

It most recently worked on: rustc 1.56.0-nightly (8007b50 2021-08-14)

Version with regression

rustc --version:

rustc 1.56.0-nightly (5eacec9ec 2021-08-28)

Metadata

Metadata

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-visibilityArea: Visibility / privacyC-bugCategory: This is a bug.P-highHigh priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions