Files
rust/tests/rustdoc/extern
Heath Dutton🕴️ b2f19eac2f rustdoc: fix duplicate Re-exports sections
When a module contains both `pub extern crate` and `pub use` items,
they were being rendered under two separate "Re-exports" section
headers instead of one. This happened because the code iterated over
each ItemType separately and rendered a section header for each,
even though both ExternCrate and Import map to the same ItemSection.

This fix tracks the current section and only renders a new header
when the section actually changes, consolidating items that belong
to the same section under a single header.
2025-12-25 12:31:23 -05:00
..