Skip to content

Consider reporting an ambiguity if both modules and primitives have the same name in an intra-doc link #75381

Closed
@jyn514

Description

@jyn514

Originally this defaulted to the module. #75318 changed this to default to primitives since seemed to be the less confusing behavior (#58699). However I'm wondering if the real issue is that rustdoc didn't report an ambiguity like it normally would for multiple namespaces. I think it would be better to say 'both module@char and type@char are in scope, pick one.

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.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