Skip to content

Commit 9a9f7a9

Browse files
committed
rustdoc-search: show all generics if implDisamiguator is set
This cleans up the Simd page
1 parent f5654ea commit 9a9f7a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,9 @@ function initSearch(rawSearchIndex) {
12671267
}
12681268
} else {
12691269
push(fnType.name, fnType.highlighted);
1270-
if (fnType.generics && fnType.generics.some(isTransitivelyHighlighted)) {
1270+
if (fnType.generics &&
1271+
(fnType.generics.some(isTransitivelyHighlighted) || fnType.implDisambiguator !== null)
1272+
) {
12711273
pushNotHighlighted("<");
12721274
formatTypeList(fnType.generics, ", ");
12731275
pushNotHighlighted(">");

0 commit comments

Comments
 (0)