File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -397,10 +397,10 @@ crate fn register_res(cx: &mut DocContext<'_>, res: Res) -> DefId {
397
397
| Union | Mod | ForeignTy | Const | Static | Macro ( ..) | TraitAlias ) ,
398
398
i,
399
399
) => ( i, kind. into ( ) ) ,
400
- // This is part of a trait definition; document the trait.
400
+ // This is part of a trait definition or trait impl ; document the trait.
401
401
Res :: SelfTy { trait_ : Some ( trait_def_id) , alias_to : _ } => ( trait_def_id, ItemType :: Trait ) ,
402
- // This is an inherent impl; it doesn't have its own page.
403
- Res :: SelfTy { trait_ : None , alias_to : Some ( ( impl_def_id , _) ) } => return impl_def_id ,
402
+ // This is an inherent impl or a type definition ; it doesn't have its own page.
403
+ Res :: SelfTy { trait_ : None , alias_to : Some ( ( item_def_id , _) ) } => return item_def_id ,
404
404
Res :: SelfTy { trait_ : None , alias_to : None }
405
405
| Res :: PrimTy ( _)
406
406
| Res :: ToolMod
You can’t perform that action at this time.
0 commit comments