From 612ba32dfbb20c48871332f30e3084ead58833a3 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 30 Jun 2022 23:53:34 +0000 Subject: [PATCH] Add nightly_clippy_allows --- ci/test-checks.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/test-checks.sh b/ci/test-checks.sh index 72c174395bd1d9..5166ec94595bbc 100755 --- a/ci/test-checks.sh +++ b/ci/test-checks.sh @@ -65,11 +65,21 @@ fi _ ci/order-crates-for-publishing.py +nightly_clippy_allows=( + # This lint occurs all over the code base + "--allow=clippy::significant_drop_in_scrutinee" + + # The prost crate, used by solana-storage-proto, generates Rust source that + # triggers this lint. Need to resolve upstream in prost + "--allow=clippy::derive_partial_eq_without_eq" +) + # -Z... is needed because of clippy bug: https://github.com/rust-lang/rust-clippy/issues/4612 # run nightly clippy for `sdk/` as there's a moderate amount of nightly-only code there _ scripts/cargo-for-all-lock-files.sh -- nightly clippy -Zunstable-options --all-targets -- \ --deny=warnings \ --deny=clippy::integer_arithmetic \ + "${nightly_clippy_allows[@]}" _ scripts/cargo-for-all-lock-files.sh -- nightly sort --workspace --check _ scripts/cargo-for-all-lock-files.sh -- nightly fmt --all -- --check