diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index c942eff6b02..27d10bce3a0 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -1212,11 +1212,13 @@
array.forEach(function(item) {
var name, type, href, displayPath;
- if (shown.indexOf(item.ty) !== -1) {
+ var id_ty = item.ty + item.path + item.name;
+ if (shown.indexOf(id_ty) !== -1) {
return;
}
- shown.push(item.ty);
+ console.log(item);
+ shown.push(id_ty);
name = item.name;
type = itemTypes[item.ty];