Skip to content

Handle fully-qualified syntax in intra doc links #74563

Description

@Manishearth

Related: #62834

#74489 makes it so that Type::Item works for trait items. There currently is anchor ambiguity between multiple traits that share an item, so it's not worth disambiguating further, however if we can fix that It would be nice if <Type as Trait>::Item could link to the appropriate bit in the type's impl section.

This would involve parsing the path as two paths, perhaps just using rustc_ast and parsing it as a TyKind::Path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.P-lowLow priorityT-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