@@ -280,6 +280,12 @@ impl Clean<Vec<Item>> for hir::Item<'_> {
280
280
generics : generics. clean ( cx) ,
281
281
variants_stripped : false ,
282
282
} ) ) ,
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
+ } ) ) ,
283
289
ItemKind :: Union ( ref variant_data, ref generics) => NotInlined ( UnionItem ( Union {
284
290
struct_type : doctree:: struct_type_from_def ( & variant_data) ,
285
291
generics : generics. clean ( cx) ,
@@ -1896,22 +1902,6 @@ impl Clean<Visibility> for ty::Visibility {
1896
1902
}
1897
1903
}
1898
1904
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
-
1915
1905
impl Clean < VariantStruct > for rustc_hir:: VariantData < ' _ > {
1916
1906
fn clean ( & self , cx : & DocContext < ' _ > ) -> VariantStruct {
1917
1907
VariantStruct {
0 commit comments