File tree 6 files changed +29
-15
lines changed
src/librustdoc/html/static/js
6 files changed +29
-15
lines changed Original file line number Diff line number Diff line change @@ -1268,7 +1268,8 @@ function initSearch(rawSearchIndex) {
1268
1268
} else {
1269
1269
push ( fnType . name , fnType . highlighted ) ;
1270
1270
if ( fnType . generics && fnType . generics . length > 0 &&
1271
- ( fnType . generics . some ( isTransitivelyHighlighted ) || fnType . implDisambiguator !== null )
1271
+ ( fnType . generics . some ( isTransitivelyHighlighted )
1272
+ || type . implDisambiguator !== null )
1272
1273
) {
1273
1274
pushNotHighlighted ( "<" ) ;
1274
1275
formatTypeList ( fnType . generics , ", " ) ;
@@ -1713,7 +1714,7 @@ function initSearch(rawSearchIndex) {
1713
1714
) {
1714
1715
// [] matches primitive:array or primitive:slice
1715
1716
// if it matches, then we're fine, and this is an appropriate match candidate
1716
- } else if ( fnType . id !== queryElem . id ) {
1717
+ } else if ( fnType . id !== queryElem . id || queryElem . id === null ) {
1717
1718
return false ;
1718
1719
}
1719
1720
// If the query elem has generics, and the function doesn't,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ const PARSED = [
2
2
{
3
3
query : "R<!>" ,
4
4
elems : [ {
5
- name : "r" ,
5
+ name : "R" ,
6
+ normalizedName : "r" ,
6
7
fullPath : [ "r" ] ,
7
8
pathWithoutLast : [ ] ,
8
9
pathLast : "r" ,
@@ -28,6 +29,7 @@ const PARSED = [
28
29
query : "!" ,
29
30
elems : [ {
30
31
name : "never" ,
32
+ normalizedName : "never" ,
31
33
fullPath : [ "never" ] ,
32
34
pathWithoutLast : [ ] ,
33
35
pathLast : "never" ,
@@ -44,6 +46,7 @@ const PARSED = [
44
46
query : "a!" ,
45
47
elems : [ {
46
48
name : "a" ,
49
+ normalizedName : "a" ,
47
50
fullPath : [ "a" ] ,
48
51
pathWithoutLast : [ ] ,
49
52
pathLast : "a" ,
@@ -78,6 +81,7 @@ const PARSED = [
78
81
query : "!::b" ,
79
82
elems : [ {
80
83
name : "!::b" ,
84
+ normalizedName : "!::b" ,
81
85
fullPath : [ "never" , "b" ] ,
82
86
pathWithoutLast : [ "never" ] ,
83
87
pathLast : "b" ,
@@ -126,7 +130,8 @@ const PARSED = [
126
130
pathLast : "b" ,
127
131
generics : [
128
132
{
129
- name : "t" ,
133
+ name : "T" ,
134
+ normalizedName : "t" ,
130
135
fullPath : [ "t" ] ,
131
136
pathWithoutLast : [ ] ,
132
137
pathLast : "t" ,
Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ const PARSED = [
2
2
{
3
3
query : 'R<P>' ,
4
4
elems : [ {
5
- name : "r" ,
5
+ name : "R" ,
6
+ normalizedName : "r" ,
6
7
fullPath : [ "r" ] ,
7
8
pathWithoutLast : [ ] ,
8
9
pathLast : "r" ,
9
10
generics : [
10
11
{
11
- name : "p" ,
12
+ name : "P" ,
13
+ normalizedName : "p" ,
12
14
fullPath : [ "p" ] ,
13
15
pathWithoutLast : [ ] ,
14
16
pathLast : "p" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ const PARSED = [
2
2
{
3
3
query : 'A::B' ,
4
4
elems : [ {
5
- name : "a::b" ,
5
+ name : "A::B" ,
6
+ normalizedName : "a::b" ,
6
7
fullPath : [ "a" , "b" ] ,
7
8
pathWithoutLast : [ "a" ] ,
8
9
pathLast : "b" ,
@@ -19,15 +20,17 @@ const PARSED = [
19
20
query : 'A::B,C' ,
20
21
elems : [
21
22
{
22
- name : "a::b" ,
23
+ name : "A::B" ,
24
+ normalizedName : "a::b" ,
23
25
fullPath : [ "a" , "b" ] ,
24
26
pathWithoutLast : [ "a" ] ,
25
27
pathLast : "b" ,
26
28
generics : [ ] ,
27
29
typeFilter : - 1 ,
28
30
} ,
29
31
{
30
- name : "c" ,
32
+ name : "C" ,
33
+ normalizedName : "c" ,
31
34
fullPath : [ "c" ] ,
32
35
pathWithoutLast : [ ] ,
33
36
pathLast : "c" ,
@@ -45,13 +48,15 @@ const PARSED = [
45
48
query : 'A::B<f>,C' ,
46
49
elems : [
47
50
{
48
- name : "a::b" ,
51
+ name : "A::B" ,
52
+ normalizedName : "a::b" ,
49
53
fullPath : [ "a" , "b" ] ,
50
54
pathWithoutLast : [ "a" ] ,
51
55
pathLast : "b" ,
52
56
generics : [
53
57
{
54
58
name : "f" ,
59
+ normalizedName : "f" ,
55
60
fullPath : [ "f" ] ,
56
61
pathWithoutLast : [ ] ,
57
62
pathLast : "f" ,
@@ -61,7 +66,8 @@ const PARSED = [
61
66
typeFilter : - 1 ,
62
67
} ,
63
68
{
64
- name : "c" ,
69
+ name : "C" ,
70
+ normalizedName : "c" ,
65
71
fullPath : [ "c" ] ,
66
72
pathWithoutLast : [ ] ,
67
73
pathLast : "c" ,
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ const PARSED = [
5
5
foundElems : 1 ,
6
6
original : "-> F<P>" ,
7
7
returned : [ {
8
- name : "f " ,
8
+ name : "F " ,
9
9
fullPath : [ "f" ] ,
10
10
pathWithoutLast : [ ] ,
11
11
pathLast : "f" ,
12
12
generics : [
13
13
{
14
- name : "p " ,
14
+ name : "P " ,
15
15
fullPath : [ "p" ] ,
16
16
pathWithoutLast : [ ] ,
17
17
pathLast : "p" ,
@@ -29,7 +29,7 @@ const PARSED = [
29
29
foundElems : 1 ,
30
30
original : "-> P" ,
31
31
returned : [ {
32
- name : "p " ,
32
+ name : "P " ,
33
33
fullPath : [ "p" ] ,
34
34
pathWithoutLast : [ ] ,
35
35
pathLast : "p" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const PARSED = [
30
30
pathLast : "[]" ,
31
31
generics : [
32
32
{
33
- name : "d " ,
33
+ name : "D " ,
34
34
fullPath : [ "d" ] ,
35
35
pathWithoutLast : [ ] ,
36
36
pathLast : "d" ,
You can’t perform that action at this time.
0 commit comments