diff --git a/uint/src/uint.rs b/uint/src/uint.rs index 7e9e162d2..ae5eb9ba9 100644 --- a/uint/src/uint.rs +++ b/uint/src/uint.rs @@ -1462,6 +1462,8 @@ macro_rules! construct_uint { } } + // We implement `Eq` and `Hash` manually to workaround + // https://github.com/rust-lang/rust/issues/61415 impl $crate::core_::cmp::PartialEq for $name { fn eq(&self, other: &$name) -> bool { self.cmp(other) == $crate::core_::cmp::Ordering::Equal