We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5928308 commit 7c532eaCopy full SHA for 7c532ea
compiler/rustc_data_structures/src/stable_hasher.rs
@@ -547,6 +547,16 @@ impl<T: HashStableEq> HashStableEq for Option<T> {
547
}
548
549
550
+impl<T: HashStableEq, E: HashStableEq> HashStableEq for Result<T, E> {
551
+ fn hash_stable_eq(&self, other: &Self) -> bool {
552
+ match (self, other) {
553
+ (Ok(first), Ok(second)) => first.hash_stable_eq(second),
554
+ (Err(first), Err(second)) => first.hash_stable_eq(second),
555
+ _ => false
556
+ }
557
558
+}
559
+
560
impl HashStableEq for bool {
561
fn hash_stable_eq(&self, other: &Self) -> bool {
562
self == other
0 commit comments