@@ -267,14 +267,14 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
267267 Some ( ref src) => write ! (
268268 w,
269269 "<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 ) ,
271271 anchor( myitem. def_id, & * src. as_str( ) , cx) ,
272272 myitem. name. as_ref( ) . unwrap( ) ,
273273 ) ,
274274 None => write ! (
275275 w,
276276 "<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 ) ,
278278 anchor( myitem. def_id, & * myitem. name. as_ref( ) . unwrap( ) . as_str( ) , cx) ,
279279 ) ,
280280 }
@@ -285,7 +285,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
285285 write ! (
286286 w,
287287 "<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 ) ,
289289 import. print( cx) ,
290290 ) ;
291291 }
@@ -386,7 +386,7 @@ fn extra_info_tags(item: &clean::Item, parent: &clean::Item, tcx: TyCtxt<'_>) ->
386386fn item_function ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , f : & clean:: Function ) {
387387 let header_len = format ! (
388388 "{}{}{}{}{:#}fn {}{:#}" ,
389- it. visibility. print_with_space( cx , it. def_id) ,
389+ it. visibility. print_with_space( it. def_id, cx ) ,
390390 f. header. constness. print_with_space( ) ,
391391 f. header. asyncness. print_with_space( ) ,
392392 f. header. unsafety. print_with_space( ) ,
@@ -401,15 +401,15 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
401401 w,
402402 "{vis}{constness}{asyncness}{unsafety}{abi}fn \
403403 {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 ) ,
405405 constness = f. header. constness. print_with_space( ) ,
406406 asyncness = f. header. asyncness. print_with_space( ) ,
407407 unsafety = f. header. unsafety. print_with_space( ) ,
408408 abi = print_abi_with_space( f. header. abi) ,
409409 name = it. name. as_ref( ) . unwrap( ) ,
410410 generics = f. generics. print( cx) ,
411411 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 ) ,
413413 notable_traits = notable_traits_decl( & f. decl, cx) ,
414414 ) ;
415415 document ( w, cx, it, None )
@@ -429,7 +429,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
429429 write ! (
430430 w,
431431 "{}{}{}trait {}{}{}" ,
432- it. visibility. print_with_space( cx , it. def_id) ,
432+ it. visibility. print_with_space( it. def_id, cx ) ,
433433 t. unsafety. print_with_space( ) ,
434434 if t. is_auto { "auto " } else { "" } ,
435435 it. name. as_ref( ) . unwrap( ) ,
@@ -848,7 +848,7 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
848848 write ! (
849849 w,
850850 "{}enum {}{}{}" ,
851- it. visibility. print_with_space( cx , it. def_id) ,
851+ it. visibility. print_with_space( it. def_id, cx ) ,
852852 it. name. as_ref( ) . unwrap( ) ,
853853 e. generics. print( cx) ,
854854 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::
10291029 write ! (
10301030 w,
10311031 "{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 ) ,
10331033 name = it. name. as_ref( ) . unwrap( ) ,
10341034 typ = c. type_. print( cx) ,
10351035 ) ;
@@ -1116,7 +1116,7 @@ fn item_static(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
11161116 write ! (
11171117 w,
11181118 "{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 ) ,
11201120 mutability = s. mutability. print_with_space( ) ,
11211121 name = it. name. as_ref( ) . unwrap( ) ,
11221122 typ = s. type_. print( cx)
@@ -1130,7 +1130,7 @@ fn item_foreign_type(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item) {
11301130 write ! (
11311131 w,
11321132 " {}type {};\n }}</pre>" ,
1133- it. visibility. print_with_space( cx , it. def_id) ,
1133+ it. visibility. print_with_space( it. def_id, cx ) ,
11341134 it. name. as_ref( ) . unwrap( ) ,
11351135 ) ;
11361136
@@ -1289,7 +1289,7 @@ fn render_union(
12891289 write ! (
12901290 w,
12911291 "{}{}{}" ,
1292- it. visibility. print_with_space( cx , it. def_id) ,
1292+ it. visibility. print_with_space( it. def_id, cx ) ,
12931293 if structhead { "union " } else { "" } ,
12941294 it. name. as_ref( ) . unwrap( )
12951295 ) ;
@@ -1311,7 +1311,7 @@ fn render_union(
13111311 write ! (
13121312 w,
13131313 " {}{}: {},\n {}" ,
1314- field. visibility. print_with_space( cx , field. def_id) ,
1314+ field. visibility. print_with_space( field. def_id, cx ) ,
13151315 field. name. as_ref( ) . unwrap( ) ,
13161316 ty. print( cx) ,
13171317 tab
@@ -1341,7 +1341,7 @@ fn render_struct(
13411341 write ! (
13421342 w,
13431343 "{}{}{}" ,
1344- it. visibility. print_with_space( cx , it. def_id) ,
1344+ it. visibility. print_with_space( it. def_id, cx ) ,
13451345 if structhead { "struct " } else { "" } ,
13461346 it. name. as_ref( ) . unwrap( )
13471347 ) ;
@@ -1367,7 +1367,7 @@ fn render_struct(
13671367 w,
13681368 "\n {} {}{}: {}," ,
13691369 tab,
1370- field. visibility. print_with_space( cx , field. def_id) ,
1370+ field. visibility. print_with_space( field. def_id, cx ) ,
13711371 field. name. as_ref( ) . unwrap( ) ,
13721372 ty. print( cx) ,
13731373 ) ;
@@ -1401,7 +1401,7 @@ fn render_struct(
14011401 write ! (
14021402 w,
14031403 "{}{}" ,
1404- field. visibility. print_with_space( cx , field. def_id) ,
1404+ field. visibility. print_with_space( field. def_id, cx ) ,
14051405 ty. print( cx) ,
14061406 )
14071407 }
0 commit comments