diff --git a/lib/wasm/src/translation_utils.rs b/lib/wasm/src/translation_utils.rs index 752256f3f1..5d40539720 100644 --- a/lib/wasm/src/translation_utils.rs +++ b/lib/wasm/src/translation_utils.rs @@ -4,12 +4,12 @@ use std::u32; use wasmparser; /// Index type of a function (imported or defined) inside the WebAssembly module. -#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)] pub struct FuncIndex(u32); entity_impl!(FuncIndex); /// Index type of a defined function inside the WebAssembly module. -#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug)] pub struct DefinedFuncIndex(u32); entity_impl!(DefinedFuncIndex);