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 {