File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2311,24 +2311,20 @@ 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
2316
2315
2317
if matchers. len ( ) <= 1 {
2316
2318
format ! (
2317
2319
"{}macro {}{} {{\n ...\n }}" ,
2318
- vis. print_with_space(
2319
- cx. tcx,
2320
- cx. tcx. hir( ) . local_def_id( item. hir_id) . to_def_id( )
2321
- ) ,
2320
+ vis_printed_with_space,
2322
2321
name,
2323
2322
matchers. iter( ) . map( |span| span. to_src( cx) ) . collect:: <String >( ) ,
2324
2323
)
2325
2324
} else {
2326
2325
format ! (
2327
2326
"{}macro {} {{\n {}}}" ,
2328
- vis. print_with_space(
2329
- cx. tcx,
2330
- cx. tcx. hir( ) . local_def_id( item. hir_id) . to_def_id( )
2331
- ) ,
2327
+ vis_printed_with_space,
2332
2328
name,
2333
2329
matchers
2334
2330
. iter( )
You can’t perform that action at this time.
0 commit comments