Skip to content

Commit ea83de7

Browse files
Deduplicate "attributes" and "attribute macros" sections IDs
1 parent ec20f2b commit ea83de7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ function preLoadCss(cssUrl) {
799799
block("foreigntype", "foreign-types", "Foreign Types");
800800
block("keyword", "keywords", "Keywords");
801801
block("attribute", "attributes", "Attributes");
802-
block("attr", "attributes", "Attribute Macros");
802+
block("attr", "attribute-macros", "Attribute Macros");
803803
block("derive", "derives", "Derive Macros");
804804
block("traitalias", "trait-aliases", "Trait Aliases");
805805
}

tests/rustdoc-gui/attr-macros.goml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ assert-count: ("#main-content a[href='macro.attr_macro.html']", 2)
2727
// First in the "Macros" section.
2828
assert-text: ("#macros + .item-table a[href='macro.attr_macro.html']", "attr_macro")
2929
// Then in the "Attribute Macros" section.
30-
assert-text: ("#attributes + .item-table a[href='macro.attr_macro.html']", "attr_macro")
30+
assert-text: ("#attribute-macros + .item-table a[href='macro.attr_macro.html']", "attr_macro")
3131

3232
// And finally we check it's correctly listed in the "all items" page.
3333
go-to: "file://" + |DOC_PATH| + "/test_docs/all.html"
@@ -36,4 +36,4 @@ assert-count: ("#main-content a[href='macro.attr_macro.html']", 2)
3636
// First in the "Macros" section.
3737
assert-text: ("#macros + .all-items a[href='macro.attr_macro.html']", "attr_macro")
3838
// Then in the "Attribute Macros" section.
39-
assert-text: ("#attributes + .all-items a[href='macro.attr_macro.html']", "attr_macro")
39+
assert-text: ("#attribute-macros + .all-items a[href='macro.attr_macro.html']", "attr_macro")

0 commit comments

Comments
 (0)