Implement serde and equality traits for SecondaryMap

This commit is contained in:
Artur Jamro
2019-08-22 10:11:41 -07:00
committed by Dan Gohman
parent e736367b8c
commit d3815a0399
5 changed files with 112 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ use std::vec::Vec;
use serde::{Deserialize, Serialize};
/// Value location range.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
pub struct ValueLocRange {
/// The ValueLoc containing a ValueLabel during this range.