Skip to content

Commit c3a08be

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 f5654ea commit c3a08be

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 && fnType.generics.length > 0 &&
1271+
(fnType.generics.some(isTransitivelyHighlighted) || fnType.implDisambiguator !== null)
1272+
) {
12711273
pushNotHighlighted("<");
12721274
formatTypeList(fnType.generics, ", ");
12731275
pushNotHighlighted(">");

0 commit comments

Comments
 (0)