Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
Lokathor opened this issue Jul 25, 2019 · 1 comment
Closed

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

Lokathor opened this issue Jul 25, 2019 · 1 comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Lokathor
Copy link
Contributor

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.

@jonas-schievink jonas-schievink added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 25, 2019
@Lokathor Lokathor changed the title Rustdoc doesn't explain (or can't) link to slice methods Rustdoc doesn't explain (or can't) linking to slice methods Jul 25, 2019
@jyn514
Copy link
Member

jyn514 commented Aug 25, 2020

Duplicate of #63351

@jyn514 jyn514 marked this as a duplicate of #63351 Aug 25, 2020
@jyn514 jyn514 closed this as completed Aug 25, 2020
@jyn514 jyn514 added A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. labels Aug 25, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants