From 5f4561e5efdee87a3a26e520fcde77c8231cbe04 Mon Sep 17 00:00:00 2001 From: losfair Date: Sun, 16 Feb 2020 00:28:43 +0800 Subject: [PATCH] Fix compilation error on Aarch64. --- lib/runtime-core/src/typed_func.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 2edcf6644..84fbe8add 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -4,7 +4,7 @@ use crate::{ error::RuntimeError, export::{Context, Export, FuncPointer}, import::IsExport, - types::{FuncSig, NativeWasmType, Type, Value, WasmExternType}, + types::{FuncSig, NativeWasmType, Type, WasmExternType}, vm, }; use std::{ @@ -246,9 +246,10 @@ where #[cfg(all(unix, target_arch = "x86_64"))] pub fn new_polymorphic(signature: Arc, func: F) -> Func<'a, Args, Rets, Host> where - F: Fn(&mut vm::Ctx, &[Value]) -> Vec + 'static, + F: Fn(&mut vm::Ctx, &[crate::types::Value]) -> Vec + 'static, { use crate::trampoline_x64::*; + use crate::types::Value; use std::convert::TryFrom; struct PolymorphicContext {