File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change
1
+ // This test ensures that compiler builtin proc-macros are considered as such.
2
+
3
+ #![ crate_name = "foo" ]
4
+
5
+ // @has 'foo/index.html'
6
+ // Each compiler builtin proc-macro has a trait equivalent so we should have
7
+ // a trait section as well.
8
+ // @count - '//*[@id="main-content"]//*[@class="small-section-header"]' 2
9
+ // @has - '//*[@id="main-content"]//*[@class="small-section-header"]' 'Traits'
10
+ // @has - '//*[@id="main-content"]//*[@class="small-section-header"]' 'Derive Macros'
11
+
12
+ // Now checking the correct file is generated as well.
13
+ // @has 'foo/derive.Clone.html'
14
+ // @!has 'foo/macro.Clone.html'
15
+ pub use std:: clone:: Clone ;
Original file line number Diff line number Diff line change 7
7
#![ crate_name = "krate" ]
8
8
#![ no_core]
9
9
10
- // @has external_crate/some_module/macro.external_macro.html
11
- // @!has external_crate/macro.external_macro.html
10
+ // @has external_crate/some_module/macro.external_macro.html
11
+ // @!has external_crate/macro.external_macro.html
12
12
extern crate external_crate;
13
13
14
14
pub mod inner {
15
15
// @has krate/inner/macro.raw_const.html
16
16
// @!has krate/macro.raw_const.html
17
17
pub macro raw_const( ) { }
18
18
19
- // @has krate/inner/macro .test.html
19
+ // @has krate/inner/attr .test.html
20
20
// @!has krate/macro.test.html
21
+ // @!has krate/inner/macro.test.html
22
+ // @!has krate/attr.test.html
21
23
#[ rustc_builtin_macro]
22
24
pub macro test ( $item: item) { }
23
25
24
- // @has krate/inner/macro.Clone.html
26
+ // @has krate/inner/derive.Clone.html
27
+ // @!has krate/inner/macro.Clone.html
25
28
// @!has krate/macro.Clone.html
29
+ // @!has krate/derive.Clone.html
26
30
#[ rustc_builtin_macro]
27
31
pub macro Clone ( $item: item) { }
28
32
You can’t perform that action at this time.
0 commit comments