-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
The Methods from Deref<Target=...>
will not appear in the documentation if Deref
's Target
is a type
alias.
This works:
pub struct MyVeryLong<AndComplicated<Type>>;
pub type Foo = MyVeryLong<AndComplicated<Type>>;
pub struct Bar;
impl Deref for Bar {
type Target = MyVeryLong<AndComplicated<Type>>;
fn deref(&self) -> &Foo { ... }
}
This doesn't:
pub struct MyVeryLong<AndComplicated<Type>>;
pub type Foo = MyVeryLong<AndComplicated<Type>>;
pub struct Bar;
impl Deref for Bar {
type Target = Foo;
fn deref(&self) -> &Foo { ... }
}
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.