Skip to content

Remove disambiguator from intra doc link text #65354

Closed
@dtolnay

Description

@dtolnay
/// Trait: [`trait@Name`], fn: [`fn@Name`]
pub struct S;

pub trait Name {}

#[allow(non_snake_case)]
pub fn Name() {}

This is currently rendered as:

The links point to the right place (the trait and the fn respectively) but I believe the link text should be just "Name" for both.

Discovered in #65336.

Mentioning the tracking issue: #43466

This issue has been assigned to @jyn514 via this comment.

Metadata

Metadata

Assignees

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.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