(&self, state: &mut H)
| 616 | |
| 617 | impl core::hash::Hash for InstNode { |
| 618 | fn hash<H: core::hash::Hasher>(&self, state: &mut H) { |
| 619 | // Ignore the sequence number as it is an optimization used by pp_cmp and may be different |
| 620 | // even for equivalent layouts. |
| 621 | self.block.hash(state); |
| 622 | self.prev.hash(state); |
| 623 | self.next.hash(state); |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | /// Iterate over instructions in a block in layout order. See `Layout::block_insts()`. |