Skip to content

Commit

Permalink
rustdoc-search: show all generics if implDisamiguator is set
Browse files Browse the repository at this point in the history
This cleans up the Simd page
  • Loading branch information
notriddle committed Oct 24, 2023
1 parent f5654ea commit 9a9f7a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustdoc/html/static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,9 @@ function initSearch(rawSearchIndex) {
}
} else {
push(fnType.name, fnType.highlighted);
if (fnType.generics && fnType.generics.some(isTransitivelyHighlighted)) {
if (fnType.generics &&
(fnType.generics.some(isTransitivelyHighlighted) || fnType.implDisambiguator !== null)
) {
pushNotHighlighted("<");
formatTypeList(fnType.generics, ", ");
pushNotHighlighted(">");
Expand Down

0 comments on commit 9a9f7a9

Please sign in to comment.