Closed
Description
The following code currently produces the following warning:
#![warn(rustdoc::broken_intra_doc_links)]
/// [a](crate::DoesNotExist)
pub struct Item;
warning: unresolved link to `self::DoesNotExist`
--> src/lib.rs:3:9
|
3 | /// [a](crate::DoesNotExist)
| ^^^^^^^^^^^^^^^^^^^ no item named `DoesNotExist` in module `rustdoc_why_self`
|
note: the lint level is defined here
--> src/lib.rs:1:9
|
1 | #![warn(rustdoc::broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note that the warning says "unresolved link to self::DoesNotExist
" even though the code mentions crate::DoesNotExist
@rustbot label +T-rustdoc +A-intra-doc-links
Meta
rustdoc --version --verbose
:
rustdoc 1.61.0-nightly (4ce374923 2022-02-28)
binary: rustdoc
commit-hash: 4ce3749235fc31d15ebd444b038a9877e8c700d7
commit-date: 2022-02-28
host: x86_64-unknown-linux-gnu
release: 1.61.0-nightly
LLVM version: 14.0.0