Skip to content

Commit

Permalink
don't break the partial eq imp
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Jan 13, 2025
1 parent 000dca3 commit 2f0d280
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion calyx-frontend/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ impl PartialEq for Attributes {
.attrs
.iter()
.all(|(k, v)| other.hinfo.attrs.get(k) == Some(v))
&& self
.hinfo
.set_attrs
.iter()
.all(|(k, v)| other.hinfo.set_attrs.get(k) == Some(v))
}
}

Expand All @@ -265,7 +270,7 @@ impl serde::Serialize for HeapAttrInfo {
}
}

#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct VecSet<D, const ALLOC: usize = 4>
where
D: Eq + std::hash::Hash + Clone,
Expand Down

0 comments on commit 2f0d280

Please sign in to comment.