Closed
Description
//! [my_module]
mod my_module {}
warning: public documentation for `<unknown>` links to private item `my_module`
--> foo.rs:1:6
|
1 | //! [my_module]
| ^^^^^^^^^ this item is private
|
= note: `#[warn(private_intra_doc_links)]` on by default
= note: this link will resolve properly if you pass `--document-private-items`
warning: 1 warning emitted
It should say foo
instead.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Intra-doc links, the ability to link to items in docs by nameCategory: This is a bug.Diagnostics: An error or lint that needs small tweaks.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the rustdoc team, which will review and decide on the PR/issue.