@@ -2157,14 +2157,14 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
21572157                    Some ( ref  src)  => write ! ( 
21582158                        w, 
21592159                        "<tr><td><code>{}extern crate {} as {};" , 
2160-                         myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id. expect_local ( ) ) , 
2160+                         myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id) , 
21612161                        anchor( myitem. def_id,  & * src. as_str( ) ) , 
21622162                        name
21632163                    ) , 
21642164                    None  => write ! ( 
21652165                        w, 
21662166                        "<tr><td><code>{}extern crate {};" , 
2167-                         myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id. expect_local ( ) ) , 
2167+                         myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id) , 
21682168                        anchor( myitem. def_id,  & * name. as_str( ) ) 
21692169                    ) , 
21702170                } 
@@ -2175,7 +2175,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
21752175                write ! ( 
21762176                    w, 
21772177                    "<tr><td><code>{}{}</code></td></tr>" , 
2178-                     myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id. expect_local ( ) ) , 
2178+                     myitem. visibility. print_with_space( cx. tcx( ) ,  myitem. def_id) , 
21792179                    import. print( ) 
21802180                ) ; 
21812181            } 
@@ -2392,7 +2392,7 @@ fn item_constant(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, c: &clean::
23922392    write ! ( 
23932393        w, 
23942394        "{vis}const {name}: {typ}" , 
2395-         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2395+         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
23962396        name = it. name. as_ref( ) . unwrap( ) , 
23972397        typ = c. type_. print( ) , 
23982398    ) ; 
@@ -2426,7 +2426,7 @@ fn item_static(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
24262426    write ! ( 
24272427        w, 
24282428        "{vis}static {mutability}{name}: {typ}</pre>" , 
2429-         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2429+         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
24302430        mutability = s. mutability. print_with_space( ) , 
24312431        name = it. name. as_ref( ) . unwrap( ) , 
24322432        typ = s. type_. print( ) 
@@ -2437,7 +2437,7 @@ fn item_static(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, s: &clean::St
24372437fn  item_function ( w :  & mut  Buffer ,  cx :  & Context < ' _ > ,  it :  & clean:: Item ,  f :  & clean:: Function )  { 
24382438    let  header_len = format ! ( 
24392439        "{}{}{}{}{:#}fn {}{:#}" , 
2440-         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2440+         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
24412441        f. header. constness. print_with_space( ) , 
24422442        f. header. asyncness. print_with_space( ) , 
24432443        f. header. unsafety. print_with_space( ) , 
@@ -2452,7 +2452,7 @@ fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::
24522452        w, 
24532453        "{vis}{constness}{asyncness}{unsafety}{abi}fn \  
24542454          {name}{generics}{decl}{spotlight}{where_clause}</pre>", 
2455-         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2455+         vis = it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
24562456        constness = f. header. constness. print_with_space( ) , 
24572457        asyncness = f. header. asyncness. print_with_space( ) , 
24582458        unsafety = f. header. unsafety. print_with_space( ) , 
@@ -2578,7 +2578,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
25782578        write ! ( 
25792579            w, 
25802580            "{}{}{}trait {}{}{}" , 
2581-             it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2581+             it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
25822582            t. unsafety. print_with_space( ) , 
25832583            if  t. is_auto {  "auto "  }  else {  ""  } , 
25842584            it. name. as_ref( ) . unwrap( ) , 
@@ -2896,7 +2896,7 @@ fn assoc_const(
28962896        w, 
28972897        "{}{}const <a href=\" {}\"  class=\" constant\" ><b>{}</b></a>: {}" , 
28982898        extra, 
2899-         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
2899+         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
29002900        naive_assoc_href( it,  link) , 
29012901        it. name. as_ref( ) . unwrap( ) , 
29022902        ty. print( ) 
@@ -3015,7 +3015,7 @@ fn render_assoc_item(
30153015        } ; 
30163016        let  mut  header_len = format ! ( 
30173017            "{}{}{}{}{}{:#}fn {}{:#}" , 
3018-             meth. visibility. print_with_space( cx. tcx( ) ,  meth. def_id. expect_local ( ) ) , 
3018+             meth. visibility. print_with_space( cx. tcx( ) ,  meth. def_id) , 
30193019            header. constness. print_with_space( ) , 
30203020            header. asyncness. print_with_space( ) , 
30213021            header. unsafety. print_with_space( ) , 
@@ -3037,7 +3037,7 @@ fn render_assoc_item(
30373037            "{}{}{}{}{}{}{}fn <a href=\" {href}\"  class=\" fnname\" >{name}</a>\  
30383038              {generics}{decl}{spotlight}{where_clause}", 
30393039            if  parent == ItemType :: Trait  {  "    "  }  else {  ""  } , 
3040-             meth. visibility. print_with_space( cx. tcx( ) ,  meth. def_id. expect_local ( ) ) , 
3040+             meth. visibility. print_with_space( cx. tcx( ) ,  meth. def_id) , 
30413041            header. constness. print_with_space( ) , 
30423042            header. asyncness. print_with_space( ) , 
30433043            header. unsafety. print_with_space( ) , 
@@ -3189,7 +3189,7 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
31893189        write ! ( 
31903190            w, 
31913191            "{}enum {}{}{}" , 
3192-             it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
3192+             it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
31933193            it. name. as_ref( ) . unwrap( ) , 
31943194            e. generics. print( ) , 
31953195            WhereClause  {  gens:  & e. generics,  indent:  0 ,  end_newline:  true  } 
@@ -3364,7 +3364,7 @@ fn render_struct(
33643364    write ! ( 
33653365        w, 
33663366        "{}{}{}" , 
3367-         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
3367+         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
33683368        if  structhead {  "struct "  }  else {  ""  } , 
33693369        it. name. as_ref( ) . unwrap( ) 
33703370    ) ; 
@@ -3384,7 +3384,7 @@ fn render_struct(
33843384                        w, 
33853385                        "\n {}    {}{}: {}," , 
33863386                        tab, 
3387-                         field. visibility. print_with_space( cx. tcx( ) ,  field. def_id. expect_local ( ) ) , 
3387+                         field. visibility. print_with_space( cx. tcx( ) ,  field. def_id) , 
33883388                        field. name. as_ref( ) . unwrap( ) , 
33893389                        ty. print( ) 
33903390                    ) ; 
@@ -3416,9 +3416,7 @@ fn render_struct(
34163416                        write ! ( 
34173417                            w, 
34183418                            "{}{}" , 
3419-                             field
3420-                                 . visibility
3421-                                 . print_with_space( cx. tcx( ) ,  field. def_id. expect_local( ) ) , 
3419+                             field. visibility. print_with_space( cx. tcx( ) ,  field. def_id) , 
34223420                            ty. print( ) 
34233421                        ) 
34243422                    } 
@@ -3453,7 +3451,7 @@ fn render_union(
34533451    write ! ( 
34543452        w, 
34553453        "{}{}{}" , 
3456-         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
3454+         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
34573455        if  structhead {  "union "  }  else {  ""  } , 
34583456        it. name. as_ref( ) . unwrap( ) 
34593457    ) ; 
@@ -3468,7 +3466,7 @@ fn render_union(
34683466            write ! ( 
34693467                w, 
34703468                "    {}{}: {},\n {}" , 
3471-                 field. visibility. print_with_space( cx. tcx( ) ,  field. def_id. expect_local ( ) ) , 
3469+                 field. visibility. print_with_space( cx. tcx( ) ,  field. def_id) , 
34723470                field. name. as_ref( ) . unwrap( ) , 
34733471                ty. print( ) , 
34743472                tab
@@ -4107,7 +4105,7 @@ fn item_foreign_type(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, cache:
41074105    write ! ( 
41084106        w, 
41094107        "    {}type {};\n }}</pre>" , 
4110-         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id. expect_local ( ) ) , 
4108+         it. visibility. print_with_space( cx. tcx( ) ,  it. def_id) , 
41114109        it. name. as_ref( ) . unwrap( ) , 
41124110    ) ; 
41134111
0 commit comments