From 9a9f7a965f533bf4e343259925658fe112750cd2 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 24 Oct 2023 10:05:05 -0700 Subject: [PATCH] rustdoc-search: show all generics if implDisamiguator is set This cleans up the Simd page --- src/librustdoc/html/static/js/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 70f6f930ed0d..8366bfdecfea 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -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(">");