diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index 48a09a1a..80a46aa1 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -8,6 +8,9 @@ #![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))] +// https://github.com/rust-lang/rust/issues/47311 +#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] + #[macro_use] extern crate serde_derive; diff --git a/test_suite/tests/test_de.rs b/test_suite/tests/test_de.rs index 67293382..5f477905 100644 --- a/test_suite/tests/test_de.rs +++ b/test_suite/tests/test_de.rs @@ -6,6 +6,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// https://github.com/rust-lang/rust/issues/47311 +#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] + #[macro_use] extern crate serde_derive; diff --git a/test_suite/tests/test_gen.rs b/test_suite/tests/test_gen.rs index 5f0fd696..57125f63 100644 --- a/test_suite/tests/test_gen.rs +++ b/test_suite/tests/test_gen.rs @@ -13,6 +13,9 @@ #![deny(warnings)] #![cfg_attr(feature = "unstable", feature(non_ascii_idents))] +// https://github.com/rust-lang/rust/issues/47311 +#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] + #[macro_use] extern crate serde_derive; diff --git a/test_suite/tests/test_macros.rs b/test_suite/tests/test_macros.rs index 661bdc21..b9b4db20 100644 --- a/test_suite/tests/test_macros.rs +++ b/test_suite/tests/test_macros.rs @@ -8,6 +8,9 @@ #![deny(trivial_numeric_casts)] +// https://github.com/rust-lang/rust/issues/47311 +#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] + #[macro_use] extern crate serde_derive; diff --git a/test_suite/tests/test_remote.rs b/test_suite/tests/test_remote.rs index 9aefd7a2..56753a87 100644 --- a/test_suite/tests/test_remote.rs +++ b/test_suite/tests/test_remote.rs @@ -6,6 +6,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// https://github.com/rust-lang/rust/issues/47311 +#![cfg_attr(feature = "cargo-clippy", allow(double_parens))] + #[macro_use] extern crate serde_derive;