about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Dönszelmann <jonathan@donsz.nl>2024-12-06 14:01:45 +0100
committerJonathan Dönszelmann <jonathan@donsz.nl>2024-12-06 14:03:09 +0100
commit85230741c7232819a01c71d158a7b763c39aeaaa (patch)
tree7909db0ffdaae494bdb5b25fced1e9689ed84493
parentacf48426b64d24f372d534f634072de1f4c7e588 (diff)
downloadrust-85230741c7232819a01c71d158a7b763c39aeaaa.tar.gz
rust-85230741c7232819a01c71d158a7b763c39aeaaa.zip
remove eq for attributes
-rw-r--r--src/librustdoc/clean/types.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index 715bf68374a..cba947eb833 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -1241,19 +1241,6 @@ impl Attributes {
     }
 }
 
-impl PartialEq for Attributes {
-    fn eq(&self, rhs: &Self) -> bool {
-        self.doc_strings == rhs.doc_strings
-            && self
-                .other_attrs
-                .iter()
-                .map(|attr| attr.id)
-                .eq(rhs.other_attrs.iter().map(|attr| attr.id))
-    }
-}
-
-impl Eq for Attributes {}
-
 #[derive(Clone, PartialEq, Eq, Debug, Hash)]
 pub(crate) enum GenericBound {
     TraitBound(PolyTrait, hir::TraitBoundModifiers),