diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js
index c726aeeff472995a42c802965119fb165f6885a9..c0b274c0a3fd3c01c551038b28dc07d5e8ddc74d 100644
--- a/src/librustdoc/html/static/js/search.js
+++ b/src/librustdoc/html/static/js/search.js
@@ -1333,10 +1333,7 @@ function initSearch(rawSearchIndex) {
if (searchWord.indexOf(elem.pathLast) > -1 ||
row.normalizedName.indexOf(elem.pathLast) > -1
) {
- // filter type: ... queries
- if (!results_others[fullId] !== undefined) {
- index = row.normalizedName.indexOf(elem.pathLast);
- }
+ index = row.normalizedName.indexOf(elem.pathLast);
}
lev = levenshtein(searchWord, elem.pathLast);
if (lev > 0 && elem.pathLast.length > 2 && searchWord.indexOf(elem.pathLast) > -1) {