Skip to content

Commit 42616b3

Browse files
committed
rustdoc-search: show all generics if implDisamiguator is set
This cleans up the Simd page. It should be sufficient, even though it can wind up showing more than necessary, but allows each item to be considered in isolation.
1 parent 8206a6c commit 42616b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,10 @@ function initSearch(rawSearchIndex) {
12681268
}
12691269
} else {
12701270
push(fnType.name, fnType.highlighted);
1271-
if (fnType.generics && fnType.generics.some(isTransitivelyHighlighted)) {
1271+
if (fnType.generics && fnType.generics.length > 0 &&
1272+
(fnType.generics.some(isTransitivelyHighlighted)
1273+
|| row.implDisambiguator !== null)
1274+
) {
12721275
pushNotHighlighted("<");
12731276
formatTypeList(fnType.generics, ", ");
12741277
pushNotHighlighted(">");

0 commit comments

Comments
 (0)