File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ impl Clean<Item> for hir::Crate<'_> {
347347
348348 // Get _all_ the items!
349349 let items = self . items . clean ( cx) . into_iter ( ) . flatten ( ) ;
350+ let items = items. chain ( self . item . module . item_ids . clean ( cx) . into_iter ( ) . flatten ( ) ) ;
350351 let items = items. chain ( self . exported_macros . clean ( cx) ) ;
351352 let items = items. chain ( self . trait_items . clean ( cx) ) ;
352353 let items = items. chain ( self . impl_items . clean ( cx) ) ;
@@ -360,7 +361,6 @@ impl Clean<Item> for hir::Crate<'_> {
360361 } )
361362 . flatten ( ) ,
362363 ) ;
363- let items = items. chain ( self . modules . clean ( cx) . into_iter ( ) . flatten ( ) ) ;
364364 let items = items. chain ( self . proc_macros . iter ( ) . map ( |hir_id| {
365365 let _def_id = hir_id. owner . local_def_index ;
366366 // TODO: look how `rustc_metadata::rmeta::encoder` does this
@@ -418,12 +418,6 @@ impl Clean<Vec<Item>> for hir::ItemId {
418418 }
419419}
420420
421- impl Clean < Vec < Item > > for hir:: ModuleItems {
422- fn clean ( & self , _cx : & DocContext < ' _ > ) -> Vec < Item > {
423- unimplemented ! ( )
424- }
425- }
426-
427421impl Clean < Attributes > for [ ast:: Attribute ] {
428422 fn clean ( & self , cx : & DocContext < ' _ > ) -> Attributes {
429423 Attributes :: from_ast ( cx. sess ( ) . diagnostic ( ) , self , None )
You can’t perform that action at this time.
0 commit comments