From fcd859a45e6c7bf782db0f7416f6d5c29eeff96d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 28 Aug 2018 17:05:26 -0700 Subject: [PATCH] Make FuncIndex and DefinedFuncIndex implement the Debug trait. --- lib/wasm/src/translation_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);