mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 18:34:08 +00:00

This tweak to the function signature search engine makes things so that, if a type is repeated in the search query, it'll only match if the function actually includes it that many times.
21 lines
378 B
JavaScript
21 lines
378 B
JavaScript
// exact-check
|
|
|
|
const QUERY = [
|
|
'P',
|
|
'P, P',
|
|
];
|
|
|
|
const EXPECTED = [
|
|
{
|
|
'in_args': [
|
|
{ 'path': 'search_bag_semantics', 'name': 'alacazam' },
|
|
{ 'path': 'search_bag_semantics', 'name': 'abracadabra' },
|
|
],
|
|
},
|
|
{
|
|
'others': [
|
|
{ 'path': 'search_bag_semantics', 'name': 'abracadabra' },
|
|
],
|
|
},
|
|
];
|