Skip to content

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

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

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.

Metadata

Metadata

Labels

T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions