diff --git a/serde/src/lib.rs b/serde/src/lib.rs index da175d8f..a3f46c3a 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -91,6 +91,7 @@ // https://github.com/serde-rs/serde/issues/812 #![cfg_attr(feature = "unstable", feature(specialization, never_type))] #![cfg_attr(feature = "alloc", feature(alloc))] +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] // Whitelisted clippy lints #![cfg_attr( diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index 226a4518..acd9acb7 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -23,6 +23,7 @@ //! [https://serde.rs/derive.html]: https://serde.rs/derive.html #![doc(html_root_url = "https://docs.rs/serde_derive/1.0.78")] +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] // Whitelisted clippy lints #![cfg_attr( diff --git a/serde_derive_internals/lib.rs b/serde_derive_internals/lib.rs index 56004e78..df37dc5d 100644 --- a/serde_derive_internals/lib.rs +++ b/serde_derive_internals/lib.rs @@ -7,6 +7,7 @@ // except according to those terms. #![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.23.1")] +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr( feature = "cargo-clippy", allow( diff --git a/serde_test/src/lib.rs b/serde_test/src/lib.rs index dcb622c1..3084f0dc 100644 --- a/serde_test/src/lib.rs +++ b/serde_test/src/lib.rs @@ -162,6 +162,7 @@ //! ``` #![doc(html_root_url = "https://docs.rs/serde_test/1.0.78")] +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] // Whitelisted clippy lints #![cfg_attr(feature = "cargo-clippy", allow(float_cmp))] diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index bc077e11..7da231cb 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -6,6 +6,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))] #[macro_use] diff --git a/test_suite/tests/test_de.rs b/test_suite/tests/test_de.rs index b7e2ef75..0df7fd69 100644 --- a/test_suite/tests/test_de.rs +++ b/test_suite/tests/test_de.rs @@ -6,6 +6,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr( feature = "cargo-clippy", allow(decimal_literal_representation) diff --git a/test_suite/tests/test_macros.rs b/test_suite/tests/test_macros.rs index 9def00ae..9d0e8d9d 100644 --- a/test_suite/tests/test_macros.rs +++ b/test_suite/tests/test_macros.rs @@ -7,6 +7,7 @@ // except according to those terms. #![deny(trivial_numeric_casts)] +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names))] #[macro_use] diff --git a/test_suite/tests/test_remote.rs b/test_suite/tests/test_remote.rs index e485bae3..64d03ae3 100644 --- a/test_suite/tests/test_remote.rs +++ b/test_suite/tests/test_remote.rs @@ -6,6 +6,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names))] #[macro_use]