Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
LeSeulArtichaut opened this issue Jun 14, 2021 · 2 comments · Fixed by #86523
Closed

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

LeSeulArtichaut opened this issue Jun 14, 2021 · 2 comments · Fixed by #86523
Assignees
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@LeSeulArtichaut
Copy link
Contributor

LeSeulArtichaut commented Jun 14, 2021

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.

@LeSeulArtichaut LeSeulArtichaut added C-bug Category: This is a bug. A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name T-rustdoc labels Jun 14, 2021
@camelid camelid self-assigned this Jun 14, 2021
@jyn514 jyn514 added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed T-rustdoc-temp labels Jun 22, 2021
@LeSeulArtichaut
Copy link
Contributor Author

@camelid Sorry, I stole this from you 😄

@bors bors closed this as completed in f9ebf1e Jun 23, 2021
@camelid
Copy link
Member

camelid commented Jul 4, 2021

@camelid Sorry, I stole this from you 😄

@LeSeulArtichaut That's okay! Thanks for fixing this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants