@@ -42,7 +42,7 @@ use utils::*;
4242pub  use  utils:: { get_auto_trait_and_blanket_impls,  krate,  register_res} ; 
4343
4444pub  use  self :: types:: FnRetTy :: * ; 
45- pub  use  self :: types:: ItemEnum :: * ; 
45+ pub  use  self :: types:: ItemKind :: * ; 
4646pub  use  self :: types:: SelfTy :: * ; 
4747pub  use  self :: types:: Type :: * ; 
4848pub  use  self :: types:: Visibility :: { Inherited ,  Public } ; 
@@ -276,7 +276,7 @@ impl Clean<Item> for doctree::Module<'_> {
276276            stability :  cx. stability ( self . id ) , 
277277            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
278278            def_id :  cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) , 
279-             inner :  ModuleItem ( Module  {  is_crate :  self . is_crate ,  items } ) , 
279+             kind :  ModuleItem ( Module  {  is_crate :  self . is_crate ,  items } ) , 
280280        } 
281281    } 
282282} 
@@ -916,7 +916,7 @@ impl Clean<Item> for doctree::Function<'_> {
916916            stability :  cx. stability ( self . id ) , 
917917            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
918918            def_id :  did. to_def_id ( ) , 
919-             inner :  FunctionItem ( Function  { 
919+             kind :  FunctionItem ( Function  { 
920920                decl, 
921921                generics, 
922922                header :  hir:: FnHeader  {  constness,  ..self . header  } , 
@@ -1023,7 +1023,7 @@ impl Clean<Item> for doctree::Trait<'_> {
10231023            visibility :  self . vis . clean ( cx) , 
10241024            stability :  cx. stability ( self . id ) , 
10251025            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
1026-             inner :  TraitItem ( Trait  { 
1026+             kind :  TraitItem ( Trait  { 
10271027                auto :  self . is_auto . clean ( cx) , 
10281028                unsafety :  self . unsafety , 
10291029                items :  self . items . iter ( ) . map ( |ti| ti. clean ( cx) ) . collect ( ) , 
@@ -1047,7 +1047,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
10471047            visibility :  self . vis . clean ( cx) , 
10481048            stability :  cx. stability ( self . id ) , 
10491049            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
1050-             inner :  TraitAliasItem ( TraitAlias  { 
1050+             kind :  TraitAliasItem ( TraitAlias  { 
10511051                generics :  self . generics . clean ( cx) , 
10521052                bounds :  self . bounds . clean ( cx) , 
10531053            } ) , 
@@ -1102,7 +1102,7 @@ impl Clean<TypeKind> for hir::def::DefKind {
11021102impl  Clean < Item >  for  hir:: TraitItem < ' _ >  { 
11031103    fn  clean ( & self ,  cx :  & DocContext < ' _ > )  -> Item  { 
11041104        let  local_did = cx. tcx . hir ( ) . local_def_id ( self . hir_id ) ; 
1105-         let  inner  = match  self . kind  { 
1105+         let  kind  = match  self . kind  { 
11061106            hir:: TraitItemKind :: Const ( ref  ty,  default)  => { 
11071107                AssocConstItem ( ty. clean ( cx) ,  default. map ( |e| print_const_expr ( cx,  e) ) ) 
11081108            } 
@@ -1140,15 +1140,15 @@ impl Clean<Item> for hir::TraitItem<'_> {
11401140            visibility :  Visibility :: Inherited , 
11411141            stability :  get_stability ( cx,  local_did. to_def_id ( ) ) , 
11421142            deprecation :  get_deprecation ( cx,  local_did. to_def_id ( ) ) , 
1143-             inner , 
1143+             kind , 
11441144        } 
11451145    } 
11461146} 
11471147
11481148impl  Clean < Item >  for  hir:: ImplItem < ' _ >  { 
11491149    fn  clean ( & self ,  cx :  & DocContext < ' _ > )  -> Item  { 
11501150        let  local_did = cx. tcx . hir ( ) . local_def_id ( self . hir_id ) ; 
1151-         let  inner  = match  self . kind  { 
1151+         let  kind  = match  self . kind  { 
11521152            hir:: ImplItemKind :: Const ( ref  ty,  expr)  => { 
11531153                AssocConstItem ( ty. clean ( cx) ,  Some ( print_const_expr ( cx,  expr) ) ) 
11541154            } 
@@ -1175,14 +1175,14 @@ impl Clean<Item> for hir::ImplItem<'_> {
11751175            visibility :  self . vis . clean ( cx) , 
11761176            stability :  get_stability ( cx,  local_did. to_def_id ( ) ) , 
11771177            deprecation :  get_deprecation ( cx,  local_did. to_def_id ( ) ) , 
1178-             inner , 
1178+             kind , 
11791179        } 
11801180    } 
11811181} 
11821182
11831183impl  Clean < Item >  for  ty:: AssocItem  { 
11841184    fn  clean ( & self ,  cx :  & DocContext < ' _ > )  -> Item  { 
1185-         let  inner  = match  self . kind  { 
1185+         let  kind  = match  self . kind  { 
11861186            ty:: AssocKind :: Const  => { 
11871187                let  ty = cx. tcx . type_of ( self . def_id ) ; 
11881188                let  default = if  self . defaultness . has_value ( )  { 
@@ -1343,7 +1343,7 @@ impl Clean<Item> for ty::AssocItem {
13431343            def_id :  self . def_id , 
13441344            attrs :  inline:: load_attrs ( cx,  self . def_id ) . clean ( cx) , 
13451345            source :  cx. tcx . def_span ( self . def_id ) . clean ( cx) , 
1346-             inner , 
1346+             kind , 
13471347        } 
13481348    } 
13491349} 
@@ -1784,7 +1784,7 @@ impl Clean<Item> for hir::StructField<'_> {
17841784            stability :  get_stability ( cx,  local_did. to_def_id ( ) ) , 
17851785            deprecation :  get_deprecation ( cx,  local_did. to_def_id ( ) ) , 
17861786            def_id :  local_did. to_def_id ( ) , 
1787-             inner :  StructFieldItem ( self . ty . clean ( cx) ) , 
1787+             kind :  StructFieldItem ( self . ty . clean ( cx) ) , 
17881788        } 
17891789    } 
17901790} 
@@ -1799,7 +1799,7 @@ impl Clean<Item> for ty::FieldDef {
17991799            stability :  get_stability ( cx,  self . did ) , 
18001800            deprecation :  get_deprecation ( cx,  self . did ) , 
18011801            def_id :  self . did , 
1802-             inner :  StructFieldItem ( cx. tcx . type_of ( self . did ) . clean ( cx) ) , 
1802+             kind :  StructFieldItem ( cx. tcx . type_of ( self . did ) . clean ( cx) ) , 
18031803        } 
18041804    } 
18051805} 
@@ -1835,7 +1835,7 @@ impl Clean<Item> for doctree::Struct<'_> {
18351835            visibility :  self . vis . clean ( cx) , 
18361836            stability :  cx. stability ( self . id ) , 
18371837            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
1838-             inner :  StructItem ( Struct  { 
1838+             kind :  StructItem ( Struct  { 
18391839                struct_type :  self . struct_type , 
18401840                generics :  self . generics . clean ( cx) , 
18411841                fields :  self . fields . clean ( cx) , 
@@ -1855,7 +1855,7 @@ impl Clean<Item> for doctree::Union<'_> {
18551855            visibility :  self . vis . clean ( cx) , 
18561856            stability :  cx. stability ( self . id ) , 
18571857            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
1858-             inner :  UnionItem ( Union  { 
1858+             kind :  UnionItem ( Union  { 
18591859                struct_type :  self . struct_type , 
18601860                generics :  self . generics . clean ( cx) , 
18611861                fields :  self . fields . clean ( cx) , 
@@ -1885,7 +1885,7 @@ impl Clean<Item> for doctree::Enum<'_> {
18851885            visibility :  self . vis . clean ( cx) , 
18861886            stability :  cx. stability ( self . id ) , 
18871887            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
1888-             inner :  EnumItem ( Enum  { 
1888+             kind :  EnumItem ( Enum  { 
18891889                variants :  self . variants . iter ( ) . map ( |v| v. clean ( cx) ) . collect ( ) , 
18901890                generics :  self . generics . clean ( cx) , 
18911891                variants_stripped :  false , 
@@ -1904,7 +1904,7 @@ impl Clean<Item> for doctree::Variant<'_> {
19041904            stability :  cx. stability ( self . id ) , 
19051905            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
19061906            def_id :  cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) , 
1907-             inner :  VariantItem ( Variant  {  kind :  self . def . clean ( cx)  } ) , 
1907+             kind :  VariantItem ( Variant  {  kind :  self . def . clean ( cx)  } ) , 
19081908        } 
19091909    } 
19101910} 
@@ -1930,7 +1930,7 @@ impl Clean<Item> for ty::VariantDef {
19301930                        def_id :  field. did , 
19311931                        stability :  get_stability ( cx,  field. did ) , 
19321932                        deprecation :  get_deprecation ( cx,  field. did ) , 
1933-                         inner :  StructFieldItem ( cx. tcx . type_of ( field. did ) . clean ( cx) ) , 
1933+                         kind :  StructFieldItem ( cx. tcx . type_of ( field. did ) . clean ( cx) ) , 
19341934                    } ) 
19351935                    . collect ( ) , 
19361936            } ) , 
@@ -1941,7 +1941,7 @@ impl Clean<Item> for ty::VariantDef {
19411941            source :  cx. tcx . def_span ( self . def_id ) . clean ( cx) , 
19421942            visibility :  Inherited , 
19431943            def_id :  self . def_id , 
1944-             inner :  VariantItem ( Variant  {  kind } ) , 
1944+             kind :  VariantItem ( Variant  {  kind } ) , 
19451945            stability :  get_stability ( cx,  self . def_id ) , 
19461946            deprecation :  get_deprecation ( cx,  self . def_id ) , 
19471947        } 
@@ -2057,7 +2057,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
20572057            visibility :  self . vis . clean ( cx) , 
20582058            stability :  cx. stability ( self . id ) , 
20592059            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2060-             inner :  TypedefItem ( Typedef  {  type_,  generics :  self . gen . clean ( cx) ,  item_type } ,  false ) , 
2060+             kind :  TypedefItem ( Typedef  {  type_,  generics :  self . gen . clean ( cx) ,  item_type } ,  false ) , 
20612061        } 
20622062    } 
20632063} 
@@ -2072,7 +2072,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
20722072            visibility :  self . vis . clean ( cx) , 
20732073            stability :  cx. stability ( self . id ) , 
20742074            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2075-             inner :  OpaqueTyItem ( OpaqueTy  { 
2075+             kind :  OpaqueTyItem ( OpaqueTy  { 
20762076                bounds :  self . opaque_ty . bounds . clean ( cx) , 
20772077                generics :  self . opaque_ty . generics . clean ( cx) , 
20782078            } ) , 
@@ -2100,7 +2100,7 @@ impl Clean<Item> for doctree::Static<'_> {
21002100            visibility :  self . vis . clean ( cx) , 
21012101            stability :  cx. stability ( self . id ) , 
21022102            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2103-             inner :  StaticItem ( Static  { 
2103+             kind :  StaticItem ( Static  { 
21042104                type_ :  self . type_ . clean ( cx) , 
21052105                mutability :  self . mutability , 
21062106                expr :  print_const_expr ( cx,  self . expr ) , 
@@ -2121,7 +2121,7 @@ impl Clean<Item> for doctree::Constant<'_> {
21212121            visibility :  self . vis . clean ( cx) , 
21222122            stability :  cx. stability ( self . id ) , 
21232123            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2124-             inner :  ConstantItem ( Constant  { 
2124+             kind :  ConstantItem ( Constant  { 
21252125                type_ :  self . type_ . clean ( cx) , 
21262126                expr :  print_const_expr ( cx,  self . expr ) , 
21272127                value :  print_evaluated_const ( cx,  def_id. to_def_id ( ) ) , 
@@ -2175,7 +2175,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
21752175            visibility :  self . vis . clean ( cx) , 
21762176            stability :  cx. stability ( self . id ) , 
21772177            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2178-             inner :  ImplItem ( Impl  { 
2178+             kind :  ImplItem ( Impl  { 
21792179                unsafety :  self . unsafety , 
21802180                generics :  self . generics . clean ( cx) , 
21812181                provided_trait_methods :  provided. clone ( ) , 
@@ -2231,7 +2231,7 @@ impl Clean<Vec<Item>> for doctree::ExternCrate<'_> {
22312231            visibility:  self . vis. clean( cx) , 
22322232            stability:  None , 
22332233            deprecation:  None , 
2234-             inner :  ExternCrateItem ( self . name. clean( cx) ,  self . path. clone( ) ) , 
2234+             kind :  ExternCrateItem ( self . name. clean( cx) ,  self . path. clone( ) ) , 
22352235        } ] 
22362236    } 
22372237} 
@@ -2302,7 +2302,7 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
23022302                        visibility :  self . vis . clean ( cx) , 
23032303                        stability :  None , 
23042304                        deprecation :  None , 
2305-                         inner :  ImportItem ( Import :: new_simple ( 
2305+                         kind :  ImportItem ( Import :: new_simple ( 
23062306                            self . name . clean ( cx) , 
23072307                            resolve_use_source ( cx,  path) , 
23082308                            false , 
@@ -2322,14 +2322,14 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
23222322            visibility:  self . vis. clean( cx) , 
23232323            stability:  None , 
23242324            deprecation:  None , 
2325-             inner :  ImportItem ( inner) , 
2325+             kind :  ImportItem ( inner) , 
23262326        } ] 
23272327    } 
23282328} 
23292329
23302330impl  Clean < Item >  for  doctree:: ForeignItem < ' _ >  { 
23312331    fn  clean ( & self ,  cx :  & DocContext < ' _ > )  -> Item  { 
2332-         let  inner  = match  self . kind  { 
2332+         let  kind  = match  self . kind  { 
23332333            hir:: ForeignItemKind :: Fn ( ref  decl,  ref  names,  ref  generics)  => { 
23342334                let  abi = cx. tcx . hir ( ) . get_foreign_abi ( self . id ) ; 
23352335                let  ( generics,  decl)  =
@@ -2364,7 +2364,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
23642364            visibility :  self . vis . clean ( cx) , 
23652365            stability :  cx. stability ( self . id ) , 
23662366            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
2367-             inner , 
2367+             kind , 
23682368        } 
23692369    } 
23702370} 
@@ -2380,7 +2380,7 @@ impl Clean<Item> for doctree::Macro<'_> {
23802380            stability :  cx. stability ( self . hid ) , 
23812381            deprecation :  cx. deprecation ( self . hid ) . clean ( cx) , 
23822382            def_id :  self . def_id , 
2383-             inner :  MacroItem ( Macro  { 
2383+             kind :  MacroItem ( Macro  { 
23842384                source :  format ! ( 
23852385                    "macro_rules! {} {{\n {}}}" , 
23862386                    name, 
@@ -2405,7 +2405,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
24052405            stability :  cx. stability ( self . id ) , 
24062406            deprecation :  cx. deprecation ( self . id ) . clean ( cx) , 
24072407            def_id :  cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) , 
2408-             inner :  ProcMacroItem ( ProcMacro  {  kind :  self . kind ,  helpers :  self . helpers . clean ( cx)  } ) , 
2408+             kind :  ProcMacroItem ( ProcMacro  {  kind :  self . kind ,  helpers :  self . helpers . clean ( cx)  } ) , 
24092409        } 
24102410    } 
24112411} 
0 commit comments