1
Fork 0

rustdoc-search: fix bugs when unboxing and reordering combine

This commit is contained in:
Michael Howell 2023-09-09 16:49:29 -07:00
parent 9ccb217422
commit 269cb57947
6 changed files with 393 additions and 253 deletions

View file

@ -1,3 +1,5 @@
// ignore-order
const FILTER_CRATE = "std";
const EXPECTED = [
@ -36,8 +38,9 @@ const EXPECTED = [
],
},
{
'query': 'option<t>, option<u> -> option<t, u>',
'query': 'option<t>, option<u> -> option<t>',
'others': [
{ 'path': 'std::option::Option', 'name': 'and' },
{ 'path': 'std::option::Option', 'name': 'zip' },
],
},

View file

@ -0,0 +1,22 @@
// ignore-order
const FILTER_CRATE = "std";
const EXPECTED = [
{
'query': 'vec::intoiter<T> -> [T]',
'others': [
{ 'path': 'std::vec::IntoIter', 'name': 'as_slice' },
{ 'path': 'std::vec::IntoIter', 'name': 'as_mut_slice' },
{ 'path': 'std::vec::IntoIter', 'name': 'next_chunk' },
],
},
{
'query': 'vec::intoiter<T> -> []',
'others': [
{ 'path': 'std::vec::IntoIter', 'name': 'as_slice' },
{ 'path': 'std::vec::IntoIter', 'name': 'as_mut_slice' },
{ 'path': 'std::vec::IntoIter', 'name': 'next_chunk' },
],
},
];