From 9e7021cfd02d050ce92f6ee425272805dc056b4a Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Mon, 3 May 2021 19:18:19 -0700 Subject: [PATCH] Derive Ord/hash on OperandOrAllocation. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 925317b..455cb4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -563,7 +563,7 @@ impl Allocation { /// A helper that wraps either an `Operand` or an `Allocation` and is /// able to tell which it is based on the tag bits. -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct OperandOrAllocation { bits: u32, }