Derive PartialOrd/Ord/Hash for Operand.

This commit is contained in:
Chris Fallin
2021-08-12 14:43:13 -07:00
parent eaf8647fdf
commit c071e44fc0

View File

@@ -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.
///