Provide an fmt::Debug impl for entity references.
Instead of deriving a Debug impl: Ebb(45), use the Display version for Debug too: ebb45. This is more readable, and no information is lost.
This commit is contained in:
@@ -9,7 +9,7 @@ use ir::{Function, Ebb, Layout};
|
||||
use packed_option::PackedOption;
|
||||
|
||||
/// A opaque reference to a code loop.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct Loop(u32);
|
||||
entity_impl!(Loop, "loop");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user