Skip to content

Intra-doc links should work for deref methods #75643

Closed
@jyn514

Description

@jyn514

I tried this code:

/// [`get`]: std::vec::Vec::get
pub fn f() {}

I expected to see this happen: A link to https://doc.rust-lang.org/std/vec/struct.Vec.html#method.get

Instead, this happened: The link wasn't resolved, because get is a method on slices, not Vec itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-feature-requestCategory: A feature request, i.e: not implemented / a PR.I-needs-decisionIssue: In need of a decision.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