Skip to content

Commit 9e7021c

Browse files
committed
Derive Ord/hash on OperandOrAllocation.
1 parent 49c54b6 commit 9e7021c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl Allocation {
563563

564564
/// A helper that wraps either an `Operand` or an `Allocation` and is
565565
/// able to tell which it is based on the tag bits.
566-
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
566+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
567567
pub struct OperandOrAllocation {
568568
bits: u32,
569569
}

0 commit comments

Comments
 (0)