Skip to content

Commit

Permalink
remove eq for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed Dec 6, 2024
1 parent acf4842 commit 8523074
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8523074

Please sign in to comment.