Skip to content

Deref implementations don't appear if it's implemented on a type alias #68016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GuillaumeGomez opened this issue Jan 8, 2020 · 1 comment
Closed
Assignees
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@GuillaumeGomez
Copy link
Member

For example:

pub struct Tags(TagsImpl);
/// FlatMap representing the key-value pairs of the tags

pub type TagsImpl = ::flat_map::FlatMap<String, String>;

impl Deref for Tags {
    type Target = TagsImpl;

    fn deref(&self) -> &Self::Target {
        &self.0
        &self.0
    }
}

In here, the Deref implementation won't appear.

@GuillaumeGomez GuillaumeGomez added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 8, 2020
@GuillaumeGomez GuillaumeGomez self-assigned this Jan 8, 2020
@GuillaumeGomez
Copy link
Member Author

Duplicate of #35295.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant