Skip to content

Commit d107e95

Browse files
authored
Rollup merge of #150185 - lambda:rustdoc-missing-close-tags-reexport, r=GuillaumeGomez
[rustdoc] Add missing close tags in extern crate reexports Fixes #150176
2 parents e0b5d93 + 685e4b6 commit d107e95

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ fn item_module(cx: &Context<'_>, item: &clean::Item, items: &[clean::Item]) -> i
439439
)?;
440440
}
441441
}
442+
write!(w, "</code></dt>")?
442443
}
443444
clean::ImportItem(ref import) => {
444445
let stab_tags =
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ aux-build:pub-extern-crate.rs
2+
3+
// A refactor had left us missing the closing tags,
4+
// ensure that they are present.
5+
// https://github.com/rust-lang/rust/issues/150176
6+
7+
//@ has pub_extern_crate_150176/index.html
8+
//@ hasraw - '<dt><code>pub extern crate inner;</code></dt>'
9+
pub extern crate inner;

0 commit comments

Comments
 (0)