mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +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).
90 lines
1.9 KiB
JavaScript
90 lines
1.9 KiB
JavaScript
// exact-check
|
|
|
|
const QUERY = [
|
|
'R<P>',
|
|
'R<struct:P>',
|
|
'R<enum:P>',
|
|
'"P"',
|
|
'P',
|
|
'ExtraCreditStructMulti<ExtraCreditInnerMulti, ExtraCreditInnerMulti>',
|
|
'TraitCat',
|
|
'TraitDog',
|
|
'Result<String>',
|
|
];
|
|
|
|
const EXPECTED = [
|
|
{
|
|
// R<P>
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
// R<struct:P>
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
// R<enum:P>
|
|
'returned': [],
|
|
'in_args': [],
|
|
},
|
|
{
|
|
// "P"
|
|
'others': [
|
|
{ 'path': 'generics', 'name': 'P' },
|
|
],
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
// P
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'alef' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'alpha' },
|
|
],
|
|
},
|
|
{
|
|
// "ExtraCreditStructMulti"<ExtraCreditInnerMulti, ExtraCreditInnerMulti>
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'extracreditlabhomework' },
|
|
],
|
|
'returned': [],
|
|
},
|
|
{
|
|
// TraitCat
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
],
|
|
},
|
|
{
|
|
// TraitDog
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'gamma' },
|
|
],
|
|
},
|
|
{
|
|
// Result<String>
|
|
'others': [],
|
|
'returned': [
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
],
|
|
'in_args': [
|
|
{ 'path': 'generics', 'name': 'super_soup' },
|
|
],
|
|
},
|
|
];
|