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
..
auxiliary Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
duplicate-reexports-section-150211.rs rustdoc: fix duplicate Re-exports sections 2025-12-25 12:31:23 -05:00
extern-default-method.no_href_on_anchor.html Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-default-method.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-fn-22038.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-html-alias.rs Test renamed crates in rustdoc 2025-07-28 13:34:03 +01:00
extern-html-fallback.rs Test renamed crates in rustdoc 2025-07-28 13:34:03 +01:00
extern-html-root-url-precedence.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-html-root-url.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-links.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
extern-method.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
external-cross.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
external-doc.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
hidden-extern-34025.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
link-extern-crate-33178.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
link-extern-crate-item-30109.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
link-extern-crate-title-33178.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
pub-extern-crate-150176.rs Add comment with link to issue and open tags 2025-12-21 00:57:46 -05:00
pub-extern-crate.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
unsafe-extern-blocks.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00
unused-extern-crate.rs Created tests/rustdoc/extern subfolder to limit number of files at the top level 2025-05-05 17:49:12 +02:00