@@ -370,21 +370,21 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> {
370
370
Some ( ident. name ) ,
371
371
) ) ;
372
372
}
373
- hir:: ItemKind :: Enum ( ..) => om. items . push ( item) ,
374
- hir:: ItemKind :: Struct ( ..) => om. items . push ( item) ,
375
- hir:: ItemKind :: Union ( ..) => om. items . push ( item) ,
376
373
hir:: ItemKind :: Fn ( ref sig, ref gen, body) => {
377
374
self . visit_fn ( om, item, ident. name , & sig. decl , sig. header , gen, body)
378
375
}
379
- hir:: ItemKind :: TyAlias ( ..)
376
+ hir:: ItemKind :: Enum ( ..)
377
+ | hir:: ItemKind :: Struct ( ..)
378
+ | hir:: ItemKind :: Union ( ..)
379
+ | hir:: ItemKind :: TyAlias ( ..)
380
380
| hir:: ItemKind :: OpaqueTy ( ..)
381
381
| hir:: ItemKind :: Static ( ..)
382
- | hir:: ItemKind :: TraitAlias ( ..) => om. items . push ( item) ,
382
+ | hir:: ItemKind :: TraitAlias ( ..) => om. items . push ( ( item, renamed ) ) ,
383
383
hir:: ItemKind :: Const ( ..) => {
384
384
// Underscore constants do not correspond to a nameable item and
385
385
// so are never useful in documentation.
386
386
if ident. name != kw:: Underscore {
387
- om. items . push ( item) ;
387
+ om. items . push ( ( item, renamed ) ) ;
388
388
}
389
389
}
390
390
hir:: ItemKind :: Trait ( is_auto, unsafety, ref generics, ref bounds, ref item_ids) => {
0 commit comments