rustdoc: Add missing IDs to ID map #91758
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In
src/librustdoc/html/render/mod.rs
, theprint_entries
function generates<h3 id="{}">...
. The id field comes from a parameter toprint_entries
, and needs to be unique with respect to other ids in the generated HTML. That means for each call site to print_entries, there is an id we need to add to init_id_map in src/librustdoc/html/markdown.rs.Originally discussed at:
structs
and friendsThe text was updated successfully, but these errors were encountered: