@@ -267,14 +267,14 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
267
267
Some ( ref src) => write ! (
268
268
w,
269
269
"<tr><td><code>{}extern crate {} as {};" ,
270
- myitem. visibility. print_with_space( cx , myitem. def_id) ,
270
+ myitem. visibility. print_with_space( myitem. def_id, cx ) ,
271
271
anchor( myitem. def_id, & * src. as_str( ) , cx) ,
272
272
myitem. name. as_ref( ) . unwrap( ) ,
273
273
) ,
274
274
None => write ! (
275
275
w,
276
276
"<tr><td><code>{}extern crate {};" ,
277
- myitem. visibility. print_with_space( cx , myitem. def_id) ,
277
+ myitem. visibility. print_with_space( myitem. def_id, cx ) ,
278
278
anchor( myitem. def_id, & * myitem. name. as_ref( ) . unwrap( ) . as_str( ) , cx) ,
279
279
) ,
280
280
}
@@ -285,7 +285,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
285
285
write ! (
286
286
w,
287
287
"<tr><td><code>{}{}</code></td></tr>" ,
288
- myitem. visibility. print_with_space( cx , myitem. def_id) ,
288
+ myitem. visibility. print_with_space( myitem. def_id, cx ) ,
289
289
import. print( cx) ,
290
290
) ;
291
291
}
@@ -386,7 +386,7 @@ fn extra_info_tags(item: &clean::Item, parent: &clean::Item, tcx: TyCtxt<'_>) ->
386
386
fn item_function ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , f : & clean:: Function ) {
387
387
let header_len = format ! (
388
388
"{}{}{}{}{:#}fn {}{:#}" ,
389
- it. visibility. print_with_space( cx , it. def_id) ,
389
+ it. visibility. print_with_space( it. def_id, cx ) ,
390
390
f. header. constness. print_with_space( ) ,
391
391
f. header. asyncness. print_with_space( ) ,
392
392
f. header. unsafety. print_with_space( ) ,
@@ -401,15 +401,15 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
401
401
w,
402
402
"{vis}{constness}{asyncness}{unsafety}{abi}fn \
403
403
{name}{generics}{decl}{notable_traits}{where_clause}</pre>",
404
- vis = it. visibility. print_with_space( cx , it. def_id) ,
404
+ vis = it. visibility. print_with_space( it. def_id, cx ) ,
405
405
constness = f. header. constness. print_with_space( ) ,
406
406
asyncness = f. header. asyncness. print_with_space( ) ,
407
407
unsafety = f. header. unsafety. print_with_space( ) ,
408
408
abi = print_abi_with_space( f. header. abi) ,
409
409
name = it. name. as_ref( ) . unwrap( ) ,
410
410
generics = f. generics. print( cx) ,
411
411
where_clause = print_where_clause( & f. generics, cx, 0 , true ) ,
412
- decl = f. decl. full_print( cx , header_len, 0 , f. header. asyncness) ,
412
+ decl = f. decl. full_print( header_len, 0 , f. header. asyncness, cx ) ,
413
413
notable_traits = notable_traits_decl( & f. decl, cx) ,
414
414
) ;
415
415
document ( w, cx, it, None )
@@ -429,7 +429,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
429
429
write ! (
430
430
w,
431
431
"{}{}{}trait {}{}{}" ,
432
- it. visibility. print_with_space( cx , it. def_id) ,
432
+ it. visibility. print_with_space( it. def_id, cx ) ,
433
433
t. unsafety. print_with_space( ) ,
434
434
if t. is_auto { "auto " } else { "" } ,
435
435
it. name. as_ref( ) . unwrap( ) ,
@@ -848,7 +848,7 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
848
848
write ! (
849
849
w,
850
850
"{}enum {}{}{}" ,
851
- it. visibility. print_with_space( cx , it. def_id) ,
851
+ it. visibility. print_with_space( it. def_id, cx ) ,
852
852
it. name. as_ref( ) . unwrap( ) ,
853
853
e. generics. print( cx) ,
854
854
print_where_clause( & e. generics, cx, 0 , true ) ,
@@ -1029,7 +1029,7 @@ fn item_constant(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, c: &clean::
1029
1029
write ! (
1030
1030
w,
1031
1031
"{vis}const {name}: {typ}" ,
1032
- vis = it. visibility. print_with_space( cx , it. def_id) ,
1032
+ vis = it. visibility. print_with_space( it. def_id, cx ) ,
1033
1033
name = it. name. as_ref( ) . unwrap( ) ,
1034
1034
typ = c. type_. print( cx) ,
1035
1035
) ;
@@ -1116,7 +1116,7 @@ fn item_static(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
1116
1116
write ! (
1117
1117
w,
1118
1118
"{vis}static {mutability}{name}: {typ}</pre>" ,
1119
- vis = it. visibility. print_with_space( cx , it. def_id) ,
1119
+ vis = it. visibility. print_with_space( it. def_id, cx ) ,
1120
1120
mutability = s. mutability. print_with_space( ) ,
1121
1121
name = it. name. as_ref( ) . unwrap( ) ,
1122
1122
typ = s. type_. print( cx)
@@ -1130,7 +1130,7 @@ fn item_foreign_type(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item) {
1130
1130
write ! (
1131
1131
w,
1132
1132
" {}type {};\n }}</pre>" ,
1133
- it. visibility. print_with_space( cx , it. def_id) ,
1133
+ it. visibility. print_with_space( it. def_id, cx ) ,
1134
1134
it. name. as_ref( ) . unwrap( ) ,
1135
1135
) ;
1136
1136
@@ -1289,7 +1289,7 @@ fn render_union(
1289
1289
write ! (
1290
1290
w,
1291
1291
"{}{}{}" ,
1292
- it. visibility. print_with_space( cx , it. def_id) ,
1292
+ it. visibility. print_with_space( it. def_id, cx ) ,
1293
1293
if structhead { "union " } else { "" } ,
1294
1294
it. name. as_ref( ) . unwrap( )
1295
1295
) ;
@@ -1311,7 +1311,7 @@ fn render_union(
1311
1311
write ! (
1312
1312
w,
1313
1313
" {}{}: {},\n {}" ,
1314
- field. visibility. print_with_space( cx , field. def_id) ,
1314
+ field. visibility. print_with_space( field. def_id, cx ) ,
1315
1315
field. name. as_ref( ) . unwrap( ) ,
1316
1316
ty. print( cx) ,
1317
1317
tab
@@ -1341,7 +1341,7 @@ fn render_struct(
1341
1341
write ! (
1342
1342
w,
1343
1343
"{}{}{}" ,
1344
- it. visibility. print_with_space( cx , it. def_id) ,
1344
+ it. visibility. print_with_space( it. def_id, cx ) ,
1345
1345
if structhead { "struct " } else { "" } ,
1346
1346
it. name. as_ref( ) . unwrap( )
1347
1347
) ;
@@ -1367,7 +1367,7 @@ fn render_struct(
1367
1367
w,
1368
1368
"\n {} {}{}: {}," ,
1369
1369
tab,
1370
- field. visibility. print_with_space( cx , field. def_id) ,
1370
+ field. visibility. print_with_space( field. def_id, cx ) ,
1371
1371
field. name. as_ref( ) . unwrap( ) ,
1372
1372
ty. print( cx) ,
1373
1373
) ;
@@ -1401,7 +1401,7 @@ fn render_struct(
1401
1401
write ! (
1402
1402
w,
1403
1403
"{}{}" ,
1404
- field. visibility. print_with_space( cx , field. def_id) ,
1404
+ field. visibility. print_with_space( field. def_id, cx ) ,
1405
1405
ty. print( cx) ,
1406
1406
)
1407
1407
}
0 commit comments