rustdoc-search: fix bugs when unboxing and reordering combine
This commit is contained in:
parent
9ccb217422
commit
269cb57947
6 changed files with 393 additions and 253 deletions
|
@ -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' },
|
||||
],
|
||||
},
|
||||
|
|
22
tests/rustdoc-js-std/vec-type-signatures.js
Normal file
22
tests/rustdoc-js-std/vec-type-signatures.js
Normal 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' },
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue