File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ // exact-check
2+
3+ const EXPECTED = [
4+ {
5+ 'query' : 'macro:macro' ,
6+ 'others' : [
7+ { 'path' : 'macro_kinds' , 'name' : 'macro1' } ,
8+ { 'path' : 'macro_kinds' , 'name' : 'macro3' } ,
9+ ] ,
10+ } ,
11+ {
12+ 'query' : 'attr:macro' ,
13+ 'others' : [
14+ { 'path' : 'macro_kinds' , 'name' : 'macro1' } ,
15+ { 'path' : 'macro_kinds' , 'name' : 'macro2' } ,
16+ ] ,
17+ } ,
18+ ] ;
Original file line number Diff line number Diff line change 1+ // Test which ensures that attribute macros are correctly handled by the search.
2+ // For example: `macro1` should appear in both `attr` and `macro` filters whereas
3+ // `macro2` and `macro3` should only appear in `attr` or `macro` filters respectively.
4+
5+ #![ feature( macro_attr) ]
6+
7+ #[ macro_export]
8+ macro_rules! macro1 {
9+ attr ( ) ( ) => { } ;
10+ ( ) => { } ;
11+ }
12+
13+ #[ macro_export]
14+ macro_rules! macro2 {
15+ attr ( ) ( ) => { } ;
16+ }
17+
18+ #[ macro_export]
19+ macro_rules! macro3 {
20+ ( ) => { } ;
21+ }
You can’t perform that action at this time.
0 commit comments