Skip to content

Rustdoc does not recognize broken reference definition if it contains a hyphen #77845

Closed
@bugadani

Description

@bugadani

Code in question: #77838 (comment)

Expected behaviour: some error pointing to this line, perhaps "no item named cosnt-link in ..."
Instead, nothing happens.

If the link label does not contain a hyphen (-), the expected error is reported.

//! Some broken [ref][link] //~ ERROR no item named
//! One more [broken][another-link] //~ ERROR no item named << this does not report an error currently

/// Some broken [ref][link] //~ ERROR no item named
/// One more [broken][another-link] //~ ERROR no item named << this does not report an error currently
mod something {}

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