File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -2333,15 +2333,16 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Ident>) {
2333
2333
// This code currently assumes that there will only be one or zero matchers, as syntax
2334
2334
// for multiple is not currently defined.
2335
2335
format ! (
2336
- "pub macro {}({}) {{\n \t ...\n }}" ,
2336
+ "{}macro {}{} {{\n \t ...\n }}" ,
2337
+ item. vis. clean( cx) . print_with_space( ) ,
2337
2338
name,
2338
2339
matchers. iter( ) . map( |span| span. to_src( cx) ) . collect:: <String >( ) ,
2339
2340
)
2340
2341
} ;
2341
2342
2342
2343
Item :: from_hir_id_and_parts (
2343
2344
item. hir_id ,
2344
- Some ( name. clean ( cx ) ) ,
2345
+ Some ( name) ,
2345
2346
MacroItem ( Macro { source, imported_from : None } ) ,
2346
2347
cx,
2347
2348
)
Original file line number Diff line number Diff line change
1
+
2
+ #![ feature( decl_macro) ]
3
+
4
+ // @has macros_2/macro.my_macro.html //pre 'pub macro my_macro() {'
5
+ // @has - //pre '...'
6
+ // @has - //pre '}'
7
+ pub macro my_macro ( ) {
8
+
9
+ }
10
+
11
+ // @has macros_2/macro.my_macro_2.html //pre 'pub macro my_macro_2($($tok:tt)*) {'
12
+ // @has - //pre '...'
13
+ // @has - //pre '}'
14
+ pub macro my_macro_2( $( $tok: tt) * ) {
15
+
16
+ }
You can’t perform that action at this time.
0 commit comments