1
Fork 0

Fix inlining

This commit is contained in:
Aaron Hill 2018-02-15 18:45:52 -05:00
parent 94fd4f360b
commit 64a1f6fbfd
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 15 additions and 5 deletions

View file

@ -1565,6 +1565,7 @@
window.register_implementors = function(imp) {
var implementors = document.getElementById('implementors-list');
var synthetic_implementors = document.getElementById('synthetic-implementors-list');
var libs = Object.getOwnPropertyNames(imp);
for (var i = 0; i < libs.length; ++i) {
if (libs[i] === currentCrate) { continue; }
@ -1573,11 +1574,15 @@
struct_loop:
for (var j = 0; j < structs.length; ++j) {
var struct = structs[j];
var list = struct.synthetic ? synthetic_implementors : implementors;
for (var k = 0; k < struct.types.length; k++) {
if (window.inlined_types.has(struct.types[k])) {
continue struct_loop;
if (struct.synthetic) {
for (var k = 0; k < struct.types.length; k++) {
if (window.inlined_types.has(struct.types[k])) {
continue struct_loop;
}
window.inlined_types.add(struct.types[k]);
}
}