We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8973ed commit 343030eCopy full SHA for 343030e
src/librustdoc/html/static/js/search.js
@@ -2727,7 +2727,12 @@ class DocSearch {
2727
// deprioritize "clone-like" results,
2728
// ie. functions that also take the queried type as an argument.
2729
const hasType = result.item && result.item.type;
2730
- if (hasType && containsTypeFromQuery(result.item.type.inputs)) {
+ if (!hasType) {
2731
+ continue;
2732
+ }
2733
+ const inputs = result.item.type.inputs;
2734
+ const where_clause = result.item.where_clause;
2735
+ if (containsTypeFromQuery(inputs, where_clause)) {
2736
result.path_dist *= 100;
2737
result.dist *= 100;
2738
}
0 commit comments