rustdoc: Do not deduplicate items when their parents differ.
Fixes #17332.
This commit is contained in:
parent
daa0745886
commit
a12b83996e
@ -313,7 +313,8 @@
|
||||
for (var i = results.length - 1; i > 0; i -= 1) {
|
||||
if (results[i].word === results[i - 1].word &&
|
||||
results[i].item.ty === results[i - 1].item.ty &&
|
||||
results[i].item.path === results[i - 1].item.path)
|
||||
results[i].item.path === results[i - 1].item.path &&
|
||||
(results[i].item.parent || {}).name === (results[i - 1].item.parent || {}).name)
|
||||
{
|
||||
results[i].id = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user