mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
e600c0ba0e
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
36 lines
554 B
JavaScript
36 lines
554 B
JavaScript
// exact-check
|
|
|
|
const QUERY = [
|
|
"i32",
|
|
"str",
|
|
"primitive:str",
|
|
"struct:str",
|
|
"TotoIsSomewhere",
|
|
];
|
|
|
|
const EXPECTED = [
|
|
{
|
|
'in_args': [
|
|
{ 'path': 'primitive', 'name': 'foo' },
|
|
],
|
|
},
|
|
{
|
|
'returned': [
|
|
{ 'path': 'primitive', 'name': 'foo' },
|
|
],
|
|
},
|
|
{
|
|
'returned': [
|
|
{ 'path': 'primitive', 'name': 'foo' },
|
|
],
|
|
},
|
|
{
|
|
'returned': [],
|
|
},
|
|
{
|
|
'others': [],
|
|
'in_args': [],
|
|
'returned': [],
|
|
},
|
|
];
|