checkpoint in reconstruction
This commit is contained in:
@@ -36,14 +36,16 @@ pub enum PrimOpError<IR> {
|
||||
ValuePrimitiveTypeError(#[from] ValuePrimitiveTypeError),
|
||||
}
|
||||
|
||||
impl<IR1: Clone,IR2: Clone> PartialEq<PrimOpError<IR2>> for PrimOpError<IR1> {
|
||||
impl<IR1: Clone, IR2: Clone> PartialEq<PrimOpError<IR2>> for PrimOpError<IR1> {
|
||||
fn eq(&self, other: &PrimOpError<IR2>) -> bool {
|
||||
match (self, other) {
|
||||
(PrimOpError::MathFailure(a), PrimOpError::MathFailure(b)) => a == b,
|
||||
(PrimOpError::TypeMismatch(a, b, c), PrimOpError::TypeMismatch(x, y, z)) => {
|
||||
a == x && b.strip() == y.strip() && c.strip() == z.strip()
|
||||
}
|
||||
(PrimOpError::BadTypeFor(a, b), PrimOpError::BadTypeFor(x, y)) => a == x && b.strip() == y.strip(),
|
||||
(PrimOpError::BadTypeFor(a, b), PrimOpError::BadTypeFor(x, y)) => {
|
||||
a == x && b.strip() == y.strip()
|
||||
}
|
||||
(PrimOpError::BadArgCount(a, b), PrimOpError::BadArgCount(x, y)) => a == x && b == y,
|
||||
(PrimOpError::UnknownPrimOp(a), PrimOpError::UnknownPrimOp(x)) => a == x,
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user