File tree 2 files changed +9
-2
lines changed
src/librustdoc/html/static/js
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -473,8 +473,6 @@ function initSearch(rawSearchIndex) {
473
473
const path = name . trim ( ) ;
474
474
if ( path . length === 0 && generics . length === 0 ) {
475
475
throw [ "Unexpected " , parserState . userQuery [ parserState . pos ] ] ;
476
- } else if ( path === "*" ) {
477
- throw [ "Unexpected " , "*" ] ;
478
476
}
479
477
if ( query . literalSearch && parserState . totalElems - parserState . genericsElems > 0 ) {
480
478
throw [ "Cannot have more than one element if you use quotes" ] ;
Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ const PARSED = [
17
17
userQuery : "-> <p>" ,
18
18
error : "Found generics without a path" ,
19
19
} ,
20
+ {
21
+ query : '-> *' ,
22
+ elems : [ ] ,
23
+ foundElems : 0 ,
24
+ original : "-> *" ,
25
+ returned : [ ] ,
26
+ userQuery : "-> *" ,
27
+ error : "Unexpected `*`" ,
28
+ } ,
20
29
{
21
30
query : 'a<"P">' ,
22
31
elems : [ ] ,
You can’t perform that action at this time.
0 commit comments