diff options
| author | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-08-29 00:51:18 -0700 |
|---|---|---|
| committer | inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-08-29 00:55:58 -0700 |
| commit | 6aacbd87f4b9a5f0472c1b8c63414a0044b50bfd (patch) | |
| tree | 6bfda36d22d0e28f45925eb2916d3cdab19309c0 | |
| parent | 3ee6d0b6b6c4e00b062cbb0ecfc6070972ad0f20 (diff) | |
| download | rust-6aacbd87f4b9a5f0472c1b8c63414a0044b50bfd.tar.gz rust-6aacbd87f4b9a5f0472c1b8c63414a0044b50bfd.zip | |
Add regression test
| -rw-r--r-- | src/test/rustdoc/macro-private-not-documented.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/rustdoc/macro-private-not-documented.rs b/src/test/rustdoc/macro-private-not-documented.rs new file mode 100644 index 00000000000..ae8b0e7229f --- /dev/null +++ b/src/test/rustdoc/macro-private-not-documented.rs @@ -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 { + () => () +} |
