Rustdoc fails to translate Rust paths into URLs for non-inline links in footnotes #132208
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.
Rustdoc incorrectly renders non-inline links (those whose destinations are defined in link reference definitions) if the link occurs in a footnote and points to a Rust item. Rather than translating the Rust path into the corresponding documentation URL, the path is simply emitted verbatim as the link's
href
.Example
With the following in
src/lib.rs
:cargo doc
produces the following HTML:The first link correctly leads to
Vec
's HTML documentation, but the second link is rendered literally as<a href="std::vec::Vec">
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: