File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
397397 | Union | Mod | ForeignTy | Const | Static | Macro ( ..) | TraitAlias ) ,
398398 i,
399399 ) => ( 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.
401401 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 ,
404404 Res :: SelfTy { trait_ : None , alias_to : None }
405405 | Res :: PrimTy ( _)
406406 | Res :: ToolMod
You can’t perform that action at this time.
0 commit comments