@@ -370,21 +370,21 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
370370 Some ( ident. name ) ,
371371 ) ) ;
372372 }
373- hir:: ItemKind :: Enum ( ..) => om. items . push ( item) ,
374- hir:: ItemKind :: Struct ( ..) => om. items . push ( item) ,
375- hir:: ItemKind :: Union ( ..) => om. items . push ( item) ,
376373 hir:: ItemKind :: Fn ( ref sig, ref gen, body) => {
377374 self . visit_fn ( om, item, ident. name , & sig. decl , sig. header , gen, body)
378375 }
379- hir:: ItemKind :: TyAlias ( ..)
376+ hir:: ItemKind :: Enum ( ..)
377+ | hir:: ItemKind :: Struct ( ..)
378+ | hir:: ItemKind :: Union ( ..)
379+ | hir:: ItemKind :: TyAlias ( ..)
380380 | hir:: ItemKind :: OpaqueTy ( ..)
381381 | hir:: ItemKind :: Static ( ..)
382- | hir:: ItemKind :: TraitAlias ( ..) => om. items . push ( item) ,
382+ | hir:: ItemKind :: TraitAlias ( ..) => om. items . push ( ( item, renamed ) ) ,
383383 hir:: ItemKind :: Const ( ..) => {
384384 // Underscore constants do not correspond to a nameable item and
385385 // so are never useful in documentation.
386386 if ident. name != kw:: Underscore {
387- om. items . push ( item) ;
387+ om. items . push ( ( item, renamed ) ) ;
388388 }
389389 }
390390 hir:: ItemKind :: Trait ( is_auto, unsafety, ref generics, ref bounds, ref item_ids) => {
0 commit comments