@@ -280,6 +280,12 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
280280 generics : generics. clean ( cx) ,
281281 variants_stripped : false ,
282282 } ) ) ,
283+ ItemKind :: Struct ( ref variant_data, ref generics) => NotInlined ( StructItem ( Struct {
284+ struct_type : doctree:: struct_type_from_def ( & variant_data) ,
285+ generics : generics. clean ( cx) ,
286+ fields : variant_data. fields ( ) . clean ( cx) ,
287+ fields_stripped : false ,
288+ } ) ) ,
283289 ItemKind :: Union ( ref variant_data, ref generics) => NotInlined ( UnionItem ( Union {
284290 struct_type : doctree:: struct_type_from_def ( & variant_data) ,
285291 generics : generics. clean ( cx) ,
@@ -1896,22 +1902,6 @@ impl Clean<Visibility> for ty::Visibility {
18961902 }
18971903}
18981904
1899- impl Clean < Item > for doctree:: Struct < ' _ > {
1900- fn clean ( & self , cx : & DocContext < ' _ > ) -> Item {
1901- Item :: from_hir_id_and_parts (
1902- self . id ,
1903- Some ( self . name ) ,
1904- StructItem ( Struct {
1905- struct_type : self . struct_type ,
1906- generics : self . generics . clean ( cx) ,
1907- fields : self . fields . clean ( cx) ,
1908- fields_stripped : false ,
1909- } ) ,
1910- cx,
1911- )
1912- }
1913- }
1914-
19151905impl Clean < VariantStruct > for rustc_hir:: VariantData < ' _ > {
19161906 fn clean ( & self , cx : & DocContext < ' _ > ) -> VariantStruct {
19171907 VariantStruct {
0 commit comments