about summary refs log tree commit diff
path: root/tests/rustdoc/private/macro-document-private.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 16:34:16 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-05 17:47:18 +0200
commiteee6c9753588fe1888d3ddb264f9516e7ac56997 (patch)
tree620f9abcdba83b6e7a6288b0f4400683949d2076 /tests/rustdoc/private/macro-document-private.rs
parenta00b39961a9b45c788b86ef9f874d886f5403280 (diff)
downloadrust-eee6c9753588fe1888d3ddb264f9516e7ac56997.tar.gz
rust-eee6c9753588fe1888d3ddb264f9516e7ac56997.zip
Created `tests/rustdoc/private` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/private/macro-document-private.rs')
-rw-r--r--tests/rustdoc/private/macro-document-private.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc/private/macro-document-private.rs b/tests/rustdoc/private/macro-document-private.rs
new file mode 100644
index 00000000000..224e31f8312
--- /dev/null
+++ b/tests/rustdoc/private/macro-document-private.rs
@@ -0,0 +1,19 @@
+// Checks that private macros are documented when `--document-private-items`
+// is present.
+//
+// This is a regression test for issue #73754.
+//
+//@ compile-flags: --document-private-items
+
+#![feature(decl_macro)]
+
+
+//@ has macro_document_private/macro.some_macro.html
+macro some_macro {
+    (a: tt) => {}
+}
+
+//@ has macro_document_private/macro.another_macro.html
+macro_rules! another_macro {
+    (a: tt) => {}
+}