Update to Cranelift 0.28.0.

Also region 2.0.0 and bindgen 0.47.1.
This commit is contained in:
Dan Gohman
2019-01-23 00:08:45 -08:00
parent 2ac0ceda14
commit 78f89f67a3
5 changed files with 7 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ use cranelift_wasm::{
GlobalIndex, Memory, MemoryIndex, SignatureIndex, Table, TableIndex,
};
use indexmap::IndexMap;
use std::boxed::Box;
use std::string::String;
use std::vec::Vec;
@@ -21,7 +22,7 @@ pub struct TableElements {
/// The offset to add to the base.
pub offset: usize,
/// The values to write into the table elements.
pub elements: Vec<FuncIndex>,
pub elements: Box<[FuncIndex]>,
}
/// An entity to export.

View File

@@ -153,7 +153,7 @@ impl<'data> cranelift_wasm::ModuleEnvironment<'data> for ModuleEnvironment<'data
table_index,
base,
offset,
elements: elements.to_vec(),
elements,
});
}