We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a540cb + d3f75eb commit 8250a25Copy full SHA for 8250a25
src/librustdoc/html/render/mod.rs
@@ -1343,7 +1343,6 @@ impl AllTypes {
1343
</a>\
1344
</span>
1345
1346
- <span class=\"in-band\">List of all items</span>\
1347
</h1>",
1348
);
1349
// Note: print_entries does not escape the title, because we know the current set of titles
src/librustdoc/html/render/tests.rs
@@ -38,3 +38,14 @@ fn test_name_sorting() {
38
sorted.sort_by(|&l, r| compare_names(l, r));
39
assert_eq!(names, sorted);
40
}
41
+
42
+#[test]
43
+fn test_all_types_prints_header_once() {
44
+ // Regression test for #82477
45
+ let all_types = AllTypes::new();
46
47
+ let mut buffer = Buffer::new();
48
+ all_types.print(&mut buffer);
49
50
+ assert_eq!(1, buffer.into_inner().matches("List of all items").count());
51
+}
0 commit comments