1
Fork 0

Fix null synthetic_implementors error

This commit is contained in:
Guillaume Gomez 2020-01-28 13:48:08 +01:00
parent 320ada6479
commit 0754461e02

View file

@ -1895,11 +1895,12 @@ function getSearchElement() {
var implementors = document.getElementById("implementors-list");
var synthetic_implementors = document.getElementById("synthetic-implementors-list");
// This `inlined_types` variable is used to avoid having the same implementation showing
// up twice. For example "String" in the "Sync" doc page.
if (synthetic_implementors) {
// This `inlined_types` variable is used to avoid having the same implementation
// showing up twice. For example "String" in the "Sync" doc page.
//
// By the way, this is only used by and useful for traits implemented automatically (like
// "Send" and "Sync").
// By the way, this is only used by and useful for traits implemented automatically
// (like "Send" and "Sync").
var inlined_types = new Set();
onEachLazy(synthetic_implementors.getElementsByClassName("impl"), function(el) {
var aliases = el.getAttribute("aliases");
@ -1910,6 +1911,7 @@ function getSearchElement() {
inlined_types.add(alias);
});
});
}
var libs = Object.getOwnPropertyNames(imp);
var llength = libs.length;