-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: broken_intra_doc_links
is incorrectly reported when linking to a proc macro
#91274
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
Labels
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
Adding the However, I found another, related bug: When I add |
Hmm, I don't think I agree that the warning isn't helpful though since the link is the same in both cases. |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 1, 2021
Deny warnings in rustdoc non-UI tests These warnings were silently ignored since they did not appear in a `.stderr` file and did not fail the test. With this change, warnings in tests are denied, causing the tests to fail if they have warnings. This change has already led me to find a bug in rustdoc (rust-lang#91274) and a useless test (`src/test/rustdoc/primitive/primitive-generic-impl.rs`, though its uselessness is unrelated to its warnings). r? `@jyn514`
lolbinarycat
added a commit
to lolbinarycat/rust
that referenced
this issue
May 22, 2025
fixes rust-lang#91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
lolbinarycat
added a commit
to lolbinarycat/rust
that referenced
this issue
May 22, 2025
fixes rust-lang#91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
tgross35
added a commit
to tgross35/rust
that referenced
this issue
May 28, 2025
…ro-91274, r=GuillaumeGomez rustdoc: linking to a local proc macro no longer warns fixes rust-lang#91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
jhpratt
added a commit
to jhpratt/rust
that referenced
this issue
May 28, 2025
…ro-91274, r=GuillaumeGomez rustdoc: linking to a local proc macro no longer warns fixes rust-lang#91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
tgross35
added a commit
to tgross35/rust
that referenced
this issue
May 28, 2025
…ro-91274, r=GuillaumeGomez rustdoc: linking to a local proc macro no longer warns fixes rust-lang#91274 tried to keep the fix general in case we ever have any other kind of item that occupies multiple namespaces simultaniously.
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
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Rustdoc only emits a documentation page for
my_macro
as a macro; there's no function page for it.Note that the link indeed fails to resolve.
Code
Output
The text was updated successfully, but these errors were encountered: