diff --git a/serde/src/lib.rs b/serde/src/lib.rs index fcc2970fb..4511f4770 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -118,6 +118,7 @@ use_self, zero_prefixed_literal, // correctly used + derive_partial_eq_without_eq, enum_glob_use, let_underscore_drop, map_err_ignore, diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index 6d6cfd157..34d2e10fa 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -22,6 +22,7 @@ clippy::cognitive_complexity, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575 clippy::collapsible_match, + clippy::derive_partial_eq_without_eq, clippy::enum_variant_names, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index e0a143244..c00fe5a6a 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -5,6 +5,7 @@ clippy::cognitive_complexity, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575 clippy::collapsible_match, + clippy::derive_partial_eq_without_eq, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797 clippy::manual_map, clippy::missing_panics_doc, diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index 382a951da..f4939d979 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -1,5 +1,6 @@ #![allow( clippy::cast_lossless, + clippy::derive_partial_eq_without_eq, clippy::from_over_into, // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 clippy::nonstandard_macro_braces, diff --git a/test_suite/tests/test_borrow.rs b/test_suite/tests/test_borrow.rs index 7810b52b5..002d63cf4 100644 --- a/test_suite/tests/test_borrow.rs +++ b/test_suite/tests/test_borrow.rs @@ -1,4 +1,8 @@ -#![allow(clippy::items_after_statements, clippy::used_underscore_binding)] +#![allow( + clippy::derive_partial_eq_without_eq, + clippy::items_after_statements, + clippy::used_underscore_binding +)] use serde::{Deserialize, Deserializer}; use serde_test::{assert_de_tokens, assert_de_tokens_error, Token}; diff --git a/test_suite/tests/test_de.rs b/test_suite/tests/test_de.rs index b765449e7..4be326f4b 100644 --- a/test_suite/tests/test_de.rs +++ b/test_suite/tests/test_de.rs @@ -1,6 +1,7 @@ #![allow( clippy::cast_lossless, clippy::decimal_literal_representation, + clippy::derive_partial_eq_without_eq, clippy::empty_enum, clippy::manual_assert, clippy::needless_pass_by_value, diff --git a/test_suite/tests/test_de_error.rs b/test_suite/tests/test_de_error.rs index d37c20c91..18b599640 100644 --- a/test_suite/tests/test_de_error.rs +++ b/test_suite/tests/test_de_error.rs @@ -1,4 +1,8 @@ -#![allow(clippy::empty_enum, clippy::unreadable_literal)] +#![allow( + clippy::derive_partial_eq_without_eq, + clippy::empty_enum, + clippy::unreadable_literal +)] #![cfg_attr(feature = "unstable", feature(never_type))] use serde::de::IntoDeserializer; diff --git a/test_suite/tests/test_gen.rs b/test_suite/tests/test_gen.rs index 32b75cbb5..c9fa4eaf2 100644 --- a/test_suite/tests/test_gen.rs +++ b/test_suite/tests/test_gen.rs @@ -6,6 +6,7 @@ #![allow( unknown_lints, mixed_script_confusables, + clippy::derive_partial_eq_without_eq, clippy::items_after_statements, clippy::missing_errors_doc, clippy::missing_panics_doc, diff --git a/test_suite/tests/test_identifier.rs b/test_suite/tests/test_identifier.rs index 12c6697e6..14b83b5c1 100644 --- a/test_suite/tests/test_identifier.rs +++ b/test_suite/tests/test_identifier.rs @@ -1,4 +1,7 @@ //! Tests for `#[serde(field_identifier)]` and `#[serde(variant_identifier)]` + +#![allow(clippy::derive_partial_eq_without_eq)] + use serde::Deserialize; use serde_test::{assert_de_tokens, Token}; diff --git a/test_suite/tests/test_ignored_any.rs b/test_suite/tests/test_ignored_any.rs index 921cdfc79..ef4ebf2c5 100644 --- a/test_suite/tests/test_ignored_any.rs +++ b/test_suite/tests/test_ignored_any.rs @@ -1,3 +1,5 @@ +#![allow(clippy::derive_partial_eq_without_eq)] + use serde::de::value::{Error, MapDeserializer, SeqDeserializer}; use serde::de::{ DeserializeSeed, EnumAccess, IgnoredAny, IntoDeserializer, VariantAccess, Visitor, diff --git a/test_suite/tests/test_macros.rs b/test_suite/tests/test_macros.rs index 47179edf7..513db7005 100644 --- a/test_suite/tests/test_macros.rs +++ b/test_suite/tests/test_macros.rs @@ -1,5 +1,6 @@ #![deny(trivial_numeric_casts)] #![allow( + clippy::derive_partial_eq_without_eq, clippy::enum_variant_names, clippy::redundant_field_names, clippy::too_many_lines diff --git a/test_suite/tests/test_ser.rs b/test_suite/tests/test_ser.rs index 0105d7605..5c8ef4640 100644 --- a/test_suite/tests/test_ser.rs +++ b/test_suite/tests/test_ser.rs @@ -1,4 +1,4 @@ -#![allow(clippy::unreadable_literal)] +#![allow(clippy::derive_partial_eq_without_eq, clippy::unreadable_literal)] #![cfg_attr(feature = "unstable", feature(never_type))] use std::cell::RefCell; diff --git a/test_suite/tests/test_unstable.rs b/test_suite/tests/test_unstable.rs index f650512d7..0f4cfa599 100644 --- a/test_suite/tests/test_unstable.rs +++ b/test_suite/tests/test_unstable.rs @@ -1,4 +1,5 @@ #![deny(warnings)] +#![allow(clippy::derive_partial_eq_without_eq)] // This test target is convoluted with the actual #[test] in a separate file to // get it so that the stable compiler does not need to parse the code of the diff --git a/test_suite/tests/test_value.rs b/test_suite/tests/test_value.rs index 4d3cd6b53..9aa666f37 100644 --- a/test_suite/tests/test_value.rs +++ b/test_suite/tests/test_value.rs @@ -1,4 +1,4 @@ -#![allow(clippy::similar_names)] +#![allow(clippy::derive_partial_eq_without_eq, clippy::similar_names)] use serde::de::value::{self, MapAccessDeserializer}; use serde::de::{IntoDeserializer, MapAccess, Visitor};