Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8523074

Browse files
committedDec 6, 2024··
remove eq for attributes
1 parent acf4842 commit 8523074

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
 

‎src/librustdoc/clean/types.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,19 +1241,6 @@ impl Attributes {
12411241
}
12421242
}
12431243

1244-
impl PartialEq for Attributes {
1245-
fn eq(&self, rhs: &Self) -> bool {
1246-
self.doc_strings == rhs.doc_strings
1247-
&& self
1248-
.other_attrs
1249-
.iter()
1250-
.map(|attr| attr.id)
1251-
.eq(rhs.other_attrs.iter().map(|attr| attr.id))
1252-
}
1253-
}
1254-
1255-
impl Eq for Attributes {}
1256-
12571244
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
12581245
pub(crate) enum GenericBound {
12591246
TraitBound(PolyTrait, hir::TraitBoundModifiers),

0 commit comments

Comments
 (0)
Please sign in to comment.