Fix null synthetic_implementors error
This commit is contained in:
parent
320ada6479
commit
0754461e02
1 changed files with 16 additions and 14 deletions
|
@ -1895,21 +1895,23 @@ function getSearchElement() {
|
||||||
var implementors = document.getElementById("implementors-list");
|
var implementors = document.getElementById("implementors-list");
|
||||||
var synthetic_implementors = document.getElementById("synthetic-implementors-list");
|
var synthetic_implementors = document.getElementById("synthetic-implementors-list");
|
||||||
|
|
||||||
// This `inlined_types` variable is used to avoid having the same implementation showing
|
if (synthetic_implementors) {
|
||||||
// up twice. For example "String" in the "Sync" doc page.
|
// 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
|
||||||
var inlined_types = new Set();
|
// (like "Send" and "Sync").
|
||||||
onEachLazy(synthetic_implementors.getElementsByClassName("impl"), function(el) {
|
var inlined_types = new Set();
|
||||||
var aliases = el.getAttribute("aliases");
|
onEachLazy(synthetic_implementors.getElementsByClassName("impl"), function(el) {
|
||||||
if (!aliases) {
|
var aliases = el.getAttribute("aliases");
|
||||||
return;
|
if (!aliases) {
|
||||||
}
|
return;
|
||||||
aliases.split(",").forEach(function(alias) {
|
}
|
||||||
inlined_types.add(alias);
|
aliases.split(",").forEach(function(alias) {
|
||||||
|
inlined_types.add(alias);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
var libs = Object.getOwnPropertyNames(imp);
|
var libs = Object.getOwnPropertyNames(imp);
|
||||||
var llength = libs.length;
|
var llength = libs.length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue