We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d9dee commit fc6a05cCopy full SHA for fc6a05c
tests/rustdoc/reexport-hidden-macro.rs
@@ -0,0 +1,22 @@
1
+// Ensure that inlined reexport of hidden macros is working as expected.
2
+// Part of <https://github.com/rust-lang/rust/issues/59368>.
3
+
4
+#![crate_name = "foo"]
5
6
+// @has 'foo/index.html'
7
+// @has - '//*[@id="main-content"]//a[@href="macro.Macro2.html"]' 'Macro2'
8
9
+// @has 'foo/macro.Macro2.html'
10
+// @has - '//*[@class="docblock"]' 'Displayed'
11
12
+#[macro_export]
13
+#[doc(hidden)]
14
+macro_rules! foo {
15
+ () => {};
16
+}
17
18
+/// not displayed
19
+pub use crate::foo as Macro;
20
+/// Displayed
21
+#[doc(inline)]
22
+pub use crate::foo as Macro2;
0 commit comments