-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyA-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.P-lowLow priorityLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
⚠️ Warning ⚠️
Discussion needs to take place and agreement needs to be reached before implementing this! See #83049 (comment).
This should succeed, but it does not.
mod foo {
//! Look at [super::bar::baz].
}
mod bar {
fn baz() {}
}
$ rustdoc foo.rs --document-private-items
warning: unresolved link to `super::bar::baz`
--> foo.rs:2:18
|
2 | //! Look at [super::bar::baz].
| ^^^^^^^^^^^^^^^ no item named `baz` in module `bar`
|
= note: `#[warn(broken_intra_doc_links)]` on by default
warning: 1 warning emitted
Metadata
Metadata
Assignees
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyA-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.P-lowLow priorityLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.