]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/macro-document-private-duplicate.rs
Rollup merge of #85534 - csmoe:demagnle-assert, r=michaelwoerister
[rust.git] / src / test / rustdoc / macro-document-private-duplicate.rs
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.
6 //
7 // See https://github.com/rust-lang/rust/pull/88019#discussion_r693920453
8 //
9 // compile-flags: --document-private-items
10
11 // @has macro_document_private_duplicate/index.html 'Doc 1.'
12 // @has macro_document_private_duplicate/macro.a_macro.html 'Doc 1.'
13 /// Doc 1.
14 macro_rules! a_macro {
15     () => ()
16 }
17
18 // @has macro_document_private_duplicate/index.html 'Doc 2.'
19 // @!has macro_document_private_duplicate/macro.a_macro.html 'Doc 2.'
20 /// Doc 2.
21 macro_rules! a_macro {
22     () => ()
23 }