File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2295,24 +2295,20 @@ impl Clean<Item> for (&hir::MacroDef<'_>, Option<Symbol>) {
2295
2295
)
2296
2296
} else {
2297
2297
let vis = item. vis . clean ( cx) ;
2298
+ let vis_printed_with_space =
2299
+ vis. print_with_space ( cx. tcx , cx. tcx . hir ( ) . local_def_id ( item. hir_id ) . to_def_id ( ) ) ;
2298
2300
2299
2301
if matchers. len ( ) <= 1 {
2300
2302
format ! (
2301
2303
"{}macro {}{} {{\n ...\n }}" ,
2302
- vis. print_with_space(
2303
- cx. tcx,
2304
- cx. tcx. hir( ) . local_def_id( item. hir_id) . to_def_id( )
2305
- ) ,
2304
+ vis_printed_with_space,
2306
2305
name,
2307
2306
matchers. iter( ) . map( |span| span. to_src( cx) ) . collect:: <String >( ) ,
2308
2307
)
2309
2308
} else {
2310
2309
format ! (
2311
2310
"{}macro {} {{\n {}}}" ,
2312
- vis. print_with_space(
2313
- cx. tcx,
2314
- cx. tcx. hir( ) . local_def_id( item. hir_id) . to_def_id( )
2315
- ) ,
2311
+ vis_printed_with_space,
2316
2312
name,
2317
2313
matchers
2318
2314
. iter( )
You can’t perform that action at this time.
0 commit comments