mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
rustdoc-search: fix fast path unboxing bindings
This commit is contained in:
parent
92b84f849a
commit
7162cb9550
@ -1433,7 +1433,7 @@ function initSearch(rawSearchIndex) {
|
||||
return true;
|
||||
}
|
||||
} else if (unifyFunctionTypes(
|
||||
fnType.generics,
|
||||
[...fnType.generics, ...Array.from(fnType.bindings.values()).flat() ],
|
||||
queryElems,
|
||||
whereClause,
|
||||
mgens ? new Map(mgens) : null,
|
||||
|
@ -19,6 +19,17 @@ const EXPECTED = [
|
||||
{ 'path': 'assoc_type::my', 'name': 'other_fn' },
|
||||
],
|
||||
},
|
||||
{
|
||||
'query': 'something',
|
||||
'correction': null,
|
||||
'others': [
|
||||
{ 'path': 'assoc_type', 'name': 'Something' },
|
||||
],
|
||||
'in_args': [
|
||||
{ 'path': 'assoc_type', 'name': 'my_fn' },
|
||||
{ 'path': 'assoc_type::my', 'name': 'other_fn' },
|
||||
],
|
||||
},
|
||||
// if I write an explicit binding, only it shows up
|
||||
{
|
||||
'query': 'iterator<item=something> -> u32',
|
||||
|
Loading…
Reference in New Issue
Block a user