Update to latest versions of term, capstone, wabt, goblin, wasmparser.

This commit is contained in:
Dan Gohman
2019-08-20 14:12:09 -07:00
parent b4ef90cfcd
commit 0c2c597852
7 changed files with 20 additions and 16 deletions

View File

@@ -596,7 +596,7 @@ fn resolve_aliases(func: &mut Function) {
}
fn reduce(
isa: &TargetIsa,
isa: &dyn TargetIsa,
mut func: Function,
verbose: bool,
) -> Result<(Function, String), String> {
@@ -658,10 +658,10 @@ struct CrashCheckContext<'a> {
context: Context,
/// The target isa to compile for.
isa: &'a TargetIsa,
isa: &'a dyn TargetIsa,
}
fn get_panic_string(panic: Box<std::any::Any>) -> String {
fn get_panic_string(panic: Box<dyn std::any::Any>) -> String {
let panic = match panic.downcast::<&'static str>() {
Ok(panic_msg) => panic_msg.to_owned(),
Err(panic) => panic,
@@ -681,7 +681,7 @@ enum CheckResult {
}
impl<'a> CrashCheckContext<'a> {
fn new(isa: &'a TargetIsa) -> Self {
fn new(isa: &'a dyn TargetIsa) -> Self {
CrashCheckContext {
context: Context::new(),
isa,

View File

@@ -140,7 +140,7 @@ cfg_if! {
}
pub fn print_disassembly(isa: &dyn TargetIsa, mem: &[u8]) -> Result<(), String> {
let mut cs = get_disassembler(isa)?;
let cs = get_disassembler(isa)?;
println!("\nDisassembly of {} bytes:", mem.len());
let insns = cs.disasm_all(&mem, 0x0).unwrap();