Skip to content

Resolve intra-doc-links on Self type implicitly #59039

Open
@Manishearth

Description

@Manishearth

With intra-doc-links, the following works:

/// [Self::bar]
pub struct Foo;

impl Foo {
    /// [Self::bar]
    fn bar() {}
}

but this does not:

/// [bar]
pub struct Foo;

impl Foo {
    /// [bar]
    fn bar() {}
}

For structs and impls we should try resolving things against Self anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-enhancementCategory: An issue proposing an enhancement or a PR with one.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