mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +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).
71 lines
1.5 KiB
JavaScript
71 lines
1.5 KiB
JavaScript
// exact-check
|
|
|
|
const QUERY = [
|
|
'Aaaaaaa -> u32',
|
|
'Aaaaaaa -> bool',
|
|
'Aaaaaaa -> usize',
|
|
'Read -> u64',
|
|
'trait:Read -> u64',
|
|
'struct:Read -> u64',
|
|
'bool -> u64',
|
|
'Ddddddd -> u64',
|
|
'-> Ddddddd'
|
|
];
|
|
|
|
const EXPECTED = [
|
|
{
|
|
// Aaaaaaa -> u32
|
|
'others': [
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'bbbbbbb' },
|
|
],
|
|
},
|
|
{
|
|
// Aaaaaaa -> bool
|
|
'others': [
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'ccccccc' },
|
|
],
|
|
},
|
|
{
|
|
// Aaaaaaa -> usize
|
|
'others': [
|
|
{ 'path': 'generics_impl::Aaaaaaa', 'name': 'read' },
|
|
],
|
|
},
|
|
{
|
|
// Read -> u64
|
|
'others': [
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'eeeeeee' },
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
],
|
|
},
|
|
{
|
|
// trait:Read -> u64
|
|
'others': [
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'eeeeeee' },
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
],
|
|
},
|
|
{
|
|
// struct:Read -> u64
|
|
'others': [],
|
|
},
|
|
{
|
|
// bool -> u64
|
|
'others': [
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'fffffff' },
|
|
],
|
|
},
|
|
{
|
|
// Ddddddd -> u64
|
|
'others': [
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'ggggggg' },
|
|
],
|
|
},
|
|
{
|
|
// -> Ddddddd
|
|
'others': [
|
|
{ 'path': 'generics_impl::Ddddddd', 'name': 'hhhhhhh' },
|
|
],
|
|
},
|
|
];
|