Skip to content

Rustdoc doesn't explain (or can't) linking to slice methods #62968

Closed
@Lokathor

Description

@Lokathor

Rustdoc documentation tells you link to an item with [text](rust::path::to::item). You can even use paths appropriate to the current context to name an item, and so because i32 and other primitives are always in scope you can point a link at i32::abs or whatever. However, you seemingly can't direct a link at a method of a slice because you can't name the slice primitive type.

This is maybe just a docs issue, or maybe there needs to be special handling added in some way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.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