File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2311,20 +2311,19 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Symbol>) {
2311
2311
)
2312
2312
} else {
2313
2313
let vis = item. vis . clean ( cx) ;
2314
- let vis_printed_with_space =
2315
- vis. print_with_space ( cx. tcx , cx. tcx . hir ( ) . local_def_id ( item. hir_id ) . to_def_id ( ) ) ;
2314
+ let def_id = cx. tcx . hir ( ) . local_def_id ( item. hir_id ) . to_def_id ( ) ;
2316
2315
2317
2316
if matchers. len ( ) <= 1 {
2318
2317
format ! (
2319
2318
"{}macro {}{} {{\n ...\n }}" ,
2320
- vis_printed_with_space ,
2319
+ vis . print_with_space ( cx . tcx , def_id ) ,
2321
2320
name,
2322
2321
matchers. iter( ) . map( |span| span. to_src( cx) ) . collect:: <String >( ) ,
2323
2322
)
2324
2323
} else {
2325
2324
format ! (
2326
2325
"{}macro {} {{\n {}}}" ,
2327
- vis_printed_with_space ,
2326
+ vis . print_with_space ( cx . tcx , def_id ) ,
2328
2327
name,
2329
2328
matchers
2330
2329
. iter( )
You can’t perform that action at this time.
0 commit comments