From c071e44fc09596a1b82732cd6f70c84af351f27f Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Thu, 12 Aug 2021 14:43:13 -0700 Subject: [PATCH] Derive PartialOrd/Ord/Hash for Operand. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7019447..6511df7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -217,7 +217,7 @@ impl std::fmt::Display for SpillSlot { /// /// An Operand may be a use or def (this corresponds to `LUse` and /// `LAllocation` in Ion). -#[derive(Clone, Copy, PartialEq, Eq)] +#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Operand { /// Bit-pack into 32 bits. ///