Rollup merge of #150185 - lambda:rustdoc-missing-close-tags-reexport, r=GuillaumeGomez

[rustdoc] Add missing close tags in extern crate reexports

Fixes rust-lang/rust#150176
This commit is contained in:
Matthias Krüger 2025-12-21 18:50:45 +01:00 committed by GitHub
commit d107e95043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -439,6 +439,7 @@ fn item_module(cx: &Context<'_>, item: &clean::Item, items: &[clean::Item]) -> i
)?;
}
}
write!(w, "</code></dt>")?
}
clean::ImportItem(ref import) => {
let stab_tags =

View file

@ -0,0 +1,9 @@
//@ aux-build:pub-extern-crate.rs
// A refactor had left us missing the closing tags,
// ensure that they are present.
// https://github.com/rust-lang/rust/issues/150176
//@ has pub_extern_crate_150176/index.html
//@ hasraw - '<dt><code>pub extern crate inner;</code></dt>'
pub extern crate inner;