rustdoc: sidebar generation code duplicates logic #138576
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I recently discovered this in #138574, when I fixed the bug for the main page, but the erroneous items were still in the sidebar.
If we simply collected a list of sidebar items during rendering of the main page, almost the entirety of
sidebar.rs
could be removed. This could even be done incrementally, with eachsidebar_*
function being replaced with a field onContext
.The text was updated successfully, but these errors were encountered: