Skip to content

Intra-doc link foo!() is rendered without the parentheses #86309

Closed
@LeSeulArtichaut

Description

@LeSeulArtichaut

Consider this code:

#[macro_export] macro_rules! foo {
    () => {}
}

/// [foo!()]
pub struct Foo;

In the generated docs, the link on the Foo page appears as foo!, with the correct link, but without the parentheses.

Metadata

Metadata

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