File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2295,20 +2295,19 @@ 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
+ let def_id = cx. tcx . hir ( ) . local_def_id ( item. hir_id ) . to_def_id ( ) ;
2300
2299
2301
2300
if matchers. len ( ) <= 1 {
2302
2301
format ! (
2303
2302
"{}macro {}{} {{\n ...\n }}" ,
2304
- vis_printed_with_space ,
2303
+ vis . print_with_space ( cx . tcx , def_id ) ,
2305
2304
name,
2306
2305
matchers. iter( ) . map( |span| span. to_src( cx) ) . collect:: <String >( ) ,
2307
2306
)
2308
2307
} else {
2309
2308
format ! (
2310
2309
"{}macro {} {{\n {}}}" ,
2311
- vis_printed_with_space ,
2310
+ vis . print_with_space ( cx . tcx , def_id ) ,
2312
2311
name,
2313
2312
matchers
2314
2313
. iter( )
You can’t perform that action at this time.
0 commit comments