]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_cross/proc_macro.rs
Rollup merge of #107389 - zvavybir:master, r=estebank
[rust.git] / tests / rustdoc / inline_cross / proc_macro.rs
1 // aux-build:proc_macro.rs
2 // build-aux-docs
3
4 extern crate some_macros;
5
6 // @has proc_macro/index.html
7 // @has - '//a/@href' 'macro.some_proc_macro.html'
8 // @has - '//a/@href' 'attr.some_proc_attr.html'
9 // @has - '//a/@href' 'derive.SomeDerive.html'
10 // @has proc_macro/macro.some_proc_macro.html
11 // @has proc_macro/attr.some_proc_attr.html
12 // @has proc_macro/derive.SomeDerive.html
13
14 // @has proc_macro/macro.some_proc_macro.html
15 // @hasraw - 'a proc-macro that swallows its input and does nothing.'
16 pub use some_macros::some_proc_macro;
17
18 // @has proc_macro/macro.reexported_macro.html
19 // @hasraw - 'Doc comment from the original crate'
20 pub use some_macros::reexported_macro;
21
22 // @has proc_macro/attr.some_proc_attr.html
23 // @hasraw - 'a proc-macro attribute that passes its item through verbatim.'
24 pub use some_macros::some_proc_attr;
25
26 // @has proc_macro/derive.SomeDerive.html
27 // @hasraw - 'a derive attribute that adds nothing to its input.'
28 pub use some_macros::SomeDerive;
29
30 // @has proc_macro/attr.first_attr.html
31 // @hasraw - 'Generated doc comment'
32 pub use some_macros::first_attr;
33
34 // @has proc_macro/attr.second_attr.html
35 // @hasraw - 'Generated doc comment'
36 pub use some_macros::second_attr;