diff --git a/map.rs b/map.rs index 7b7473b2c..b473a665c 100644 --- a/map.rs +++ b/map.rs @@ -1261,6 +1261,7 @@ impl, V: Clone, S, H: Hasher> HashMap { } } +#[stable] impl, V: PartialEq, S, H: Hasher> PartialEq for HashMap { fn eq(&self, other: &HashMap) -> bool { if self.len() != other.len() { return false; } @@ -1271,6 +1272,7 @@ impl, V: PartialEq, S, H: Hasher> PartialEq for HashMap, V: Eq, S, H: Hasher> Eq for HashMap {} impl + Show, V: Show, S, H: Hasher> Show for HashMap { diff --git a/set.rs b/set.rs index 6d83d5510..93f6895f6 100644 --- a/set.rs +++ b/set.rs @@ -572,6 +572,7 @@ impl, S, H: Hasher> HashSet { } } +#[stable] impl, S, H: Hasher> PartialEq for HashSet { fn eq(&self, other: &HashSet) -> bool { if self.len() != other.len() { return false; } @@ -580,6 +581,7 @@ impl, S, H: Hasher> PartialEq for HashSet { } } +#[stable] impl, S, H: Hasher> Eq for HashSet {} impl + fmt::Show, S, H: Hasher> fmt::Show for HashSet {