Make FuncIndex and DefinedFuncIndex implement the Debug trait.

This commit is contained in:
Dan Gohman
2018-08-28 17:05:26 -07:00
parent 7fa0a38793
commit fcd859a45e

View File

@@ -4,12 +4,12 @@ use std::u32;
use wasmparser; use wasmparser;
/// Index type of a function (imported or defined) inside the WebAssembly module. /// 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); pub struct FuncIndex(u32);
entity_impl!(FuncIndex); entity_impl!(FuncIndex);
/// Index type of a defined function inside the WebAssembly module. /// 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); pub struct DefinedFuncIndex(u32);
entity_impl!(DefinedFuncIndex); entity_impl!(DefinedFuncIndex);