-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #88456 - inquisitivecrystal:private-macro, r=jyn514
Fix: don't document private macros by default As part of #88019, I made it so private macros are documented in `--document-private-items` mode. Unfortunately, it appears that I also accidentally made them be documented when *not* in `--document-private-items` mode. This PR fixes that and adds a regression test. r? `@jyn514` (I hope you don't mind that I keep sending PRs your way) Fixes #88453.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Checks that private macros aren't documented by default. They | ||
// should be still be documented in `--document-private-items` mode, | ||
// but that's tested in `macro-document-private.rs`. | ||
// | ||
// | ||
// This is a regression text for issue #88453. | ||
#![feature(decl_macro)] | ||
|
||
// @!has macro_private_not_documented/index.html 'a_macro' | ||
// @!has macro_private_not_documented/macro.a_macro.html | ||
macro_rules! a_macro { | ||
() => () | ||
} | ||
|
||
// @!has macro_private_not_documented/index.html 'another_macro' | ||
// @!has macro_private_not_documented/macro.another_macro.html | ||
macro another_macro { | ||
() => () | ||
} |