Skip to content

Commit 857a187

Browse files
rustdoc search: Include attribute and derive macros when filtering on "macros"
1 parent 23fced0 commit 857a187

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/js/search.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3904,6 +3904,8 @@ class DocSearch {
39043904
return name === "primitive" || name === "associatedtype";
39053905
case "trait":
39063906
return name === "traitalias";
3907+
case "macro":
3908+
return name === "attr" || name === "derive";
39073909
}
39083910

39093911
// No match

0 commit comments

Comments
 (0)