File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1983,7 +1983,8 @@ function initSearch(rawSearchIndex) {
1983
1983
}
1984
1984
elem . id = match ;
1985
1985
}
1986
- if ( ( elem . id === null && parsedQuery . totalElems > 1 && elem . typeFilter === - 1 )
1986
+ if ( ( elem . id === null && parsedQuery . totalElems > 1 && elem . typeFilter === - 1
1987
+ && elem . generics . length === 0 )
1987
1988
|| elem . typeFilter === TY_GENERIC ) {
1988
1989
if ( genericSymbols . has ( elem . name ) ) {
1989
1990
elem . id = genericSymbols . get ( elem . name ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ function contentToDiffLine(key, value) {
23
23
}
24
24
25
25
function shouldIgnoreField ( fieldName ) {
26
- return fieldName === "query" || fieldName === "correction" ;
26
+ return fieldName === "query" || fieldName === "correction" ||
27
+ fieldName === "proposeCorrectionFrom" ||
28
+ fieldName === "proposeCorrectionTo" ;
27
29
}
28
30
29
31
// This function is only called when no matching result was found and therefore will only display
Original file line number Diff line number Diff line change @@ -12,11 +12,15 @@ const EXPECTED = [
12
12
] ,
13
13
} ,
14
14
{
15
- 'query' : 'Result<SomeTraiz>' ,
16
- 'correction' : null ,
15
+ 'query' : 'Resulx<SomeTrait>' ,
17
16
'in_args' : [ ] ,
18
17
'returned' : [ ] ,
19
18
} ,
19
+ {
20
+ 'query' : 'Result<SomeTraiz>' ,
21
+ 'proposeCorrectionFrom' : 'SomeTraiz' ,
22
+ 'proposeCorrectionTo' : 'SomeTrait' ,
23
+ } ,
20
24
{
21
25
'query' : 'OtherThingxxxxxxxx' ,
22
26
'correction' : null ,
You can’t perform that action at this time.
0 commit comments