1 // FIXME: If two macros in the same module have the same name
2 // (yes, that's a thing), rustdoc lists both of them on the index page,
3 // but only documents the first one on the page for the macro.
4 // Fortunately, this can only happen in document private items mode,
5 // but it still isn't ideal beahvior.
7 // See https://github.com/rust-lang/rust/pull/88019#discussion_r693920453
9 // compile-flags: --document-private-items
11 // @has macro_document_private_duplicate/index.html 'Doc 1.'
12 // @has macro_document_private_duplicate/macro.a_macro.html 'Doc 1.'
14 macro_rules! a_macro {
18 // @has macro_document_private_duplicate/index.html 'Doc 2.'
19 // @!has macro_document_private_duplicate/macro.a_macro.html 'Doc 2.'
21 macro_rules! a_macro {