Skip to content

Allow generic parameters in intra doc link #62834

Closed
@dtolnay

Description

@dtolnay
pub struct Collection<T> { __: T }

/// [`Collection`], [`Collection<T>`]
pub struct S;

Currently this renders as ` Collection, [Collection<T>] `, where the first link is ok but the second link is not rendered. I think these should both point to struct.Collection.html. For some types it can be clearer to include the type parameters when discussing them.

Mentioning the tracking issue: #43466

Metadata

Metadata

Assignees

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.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.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