From 357cfca8d03549f77322497c5f007b469085d9bc Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 18 Jan 2021 14:31:01 +1000 Subject: [PATCH] Use the rustc unknown lints attribute The clippy unknown lints attribute was deprecated in nightly in rust-lang/rust#80524. The old lint name now produces a warning. Since we're using `allow(unknown_lints)` to suppress warnings, we need to adopt the canonical name, so we can continue to build without warnings. --- zebra-chain/src/lib.rs | 2 +- zebra-consensus/src/lib.rs | 2 +- zebra-network/src/lib.rs | 2 +- zebra-script/src/lib.rs | 2 +- zebra-state/src/lib.rs | 2 +- zebra-test/src/lib.rs | 2 +- zebrad/tests/acceptance.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/zebra-chain/src/lib.rs b/zebra-chain/src/lib.rs index 5a317df4c67..fdfecdf7694 100644 --- a/zebra-chain/src/lib.rs +++ b/zebra-chain/src/lib.rs @@ -9,7 +9,7 @@ // #![deny(missing_docs)] #![allow(clippy::try_err)] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::from_iter_instead_of_collect)] #![allow(clippy::unnecessary_wraps)] diff --git a/zebra-consensus/src/lib.rs b/zebra-consensus/src/lib.rs index 37bf747a722..e633a3d4813 100644 --- a/zebra-consensus/src/lib.rs +++ b/zebra-consensus/src/lib.rs @@ -37,7 +37,7 @@ //#![deny(missing_docs)] #![allow(clippy::try_err)] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::unnecessary_wraps)] mod block; diff --git a/zebra-network/src/lib.rs b/zebra-network/src/lib.rs index d6dca394c59..f6e05dab2b7 100644 --- a/zebra-network/src/lib.rs +++ b/zebra-network/src/lib.rs @@ -39,7 +39,7 @@ // https://github.com/tokio-rs/tracing/issues/553 #![allow(clippy::cognitive_complexity)] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::unnecessary_wraps)] #[macro_use] diff --git a/zebra-script/src/lib.rs b/zebra-script/src/lib.rs index 1bdb9d68a80..9423d38bea8 100644 --- a/zebra-script/src/lib.rs +++ b/zebra-script/src/lib.rs @@ -3,7 +3,7 @@ #![doc(html_logo_url = "https://www.zfnd.org/images/zebra-icon.png")] #![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_script")] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::unnecessary_wraps)] use displaydoc::Display; diff --git a/zebra-state/src/lib.rs b/zebra-state/src/lib.rs index 635e72d1640..7fe1ddc35ad 100644 --- a/zebra-state/src/lib.rs +++ b/zebra-state/src/lib.rs @@ -6,7 +6,7 @@ #![warn(missing_docs)] #![allow(clippy::try_err)] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::field_reassign_with_default)] #![allow(clippy::unnecessary_wraps)] diff --git a/zebra-test/src/lib.rs b/zebra-test/src/lib.rs index e16cfb50db3..6cf68d28dbb 100644 --- a/zebra-test/src/lib.rs +++ b/zebra-test/src/lib.rs @@ -1,7 +1,7 @@ //! Miscellaneous test code for Zebra. // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::from_iter_instead_of_collect)] // Each lazy_static variable uses additional recursion #![recursion_limit = "256"] diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 66759125ffe..80e00a7a0d3 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -16,7 +16,7 @@ #![allow(dead_code)] #![allow(clippy::try_err)] // Disable some broken or unwanted clippy nightly lints -#![allow(clippy::unknown_clippy_lints)] +#![allow(unknown_lints)] #![allow(clippy::field_reassign_with_default)] use color_eyre::eyre::Result;