diff options
| author | Jonathan Dönszelmann <jonathan@donsz.nl> | 2024-12-06 14:01:45 +0100 |
|---|---|---|
| committer | Jonathan Dönszelmann <jonathan@donsz.nl> | 2024-12-06 14:03:09 +0100 |
| commit | 85230741c7232819a01c71d158a7b763c39aeaaa (patch) | |
| tree | 7909db0ffdaae494bdb5b25fced1e9689ed84493 | |
| parent | acf48426b64d24f372d534f634072de1f4c7e588 (diff) | |
| download | rust-85230741c7232819a01c71d158a7b763c39aeaaa.tar.gz rust-85230741c7232819a01c71d158a7b763c39aeaaa.zip | |
remove eq for attributes
| -rw-r--r-- | src/librustdoc/clean/types.rs | 13 |
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), |
