Skip to content

Commit a234b59

Browse files
fix: use correct field
Co-authored-by: Michael Howell <[email protected]>
1 parent 99e89fd commit a234b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3568,13 +3568,13 @@ class DocSearch {
35683568
if (!list) return false;
35693569
for (const ty of parsedQuery.returned) {
35703570
// negative type ids are generics
3571-
if (ty < 0) continue;
3571+
if (ty.id < 0) continue;
35723572
if (checkIfInList(list, ty, where_clause, null, 0)) {
35733573
return true;
35743574
}
35753575
}
35763576
for (const ty of parsedQuery.elems) {
3577-
if (ty < 0) continue;
3577+
if (ty.id < 0) continue;
35783578
if (checkIfInList(list, ty, where_clause, null, 0)) {
35793579
return true;
35803580
}

0 commit comments

Comments
 (0)