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) {
19831983 }
19841984 elem . id = match ;
19851985 }
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 )
19871988 || elem . typeFilter === TY_GENERIC ) {
19881989 if ( genericSymbols . has ( elem . name ) ) {
19891990 elem . id = genericSymbols . get ( elem . name ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ function contentToDiffLine(key, value) {
2323}
2424
2525function shouldIgnoreField ( fieldName ) {
26- return fieldName === "query" || fieldName === "correction" ;
26+ return fieldName === "query" || fieldName === "correction" ||
27+ fieldName === "proposeCorrectionFrom" ||
28+ fieldName === "proposeCorrectionTo" ;
2729}
2830
2931// 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 = [
1212 ] ,
1313 } ,
1414 {
15- 'query' : 'Result<SomeTraiz>' ,
16- 'correction' : null ,
15+ 'query' : 'Resulx<SomeTrait>' ,
1716 'in_args' : [ ] ,
1817 'returned' : [ ] ,
1918 } ,
19+ {
20+ 'query' : 'Result<SomeTraiz>' ,
21+ 'proposeCorrectionFrom' : 'SomeTraiz' ,
22+ 'proposeCorrectionTo' : 'SomeTrait' ,
23+ } ,
2024 {
2125 'query' : 'OtherThingxxxxxxxx' ,
2226 'correction' : null ,
You can’t perform that action at this time.
0 commit comments