Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Temporarily use stable clippy for redundant_clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 17, 2023
1 parent 6de581a commit 117ea40
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ci/test-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ nightly_clippy_allows=(--allow=clippy::redundant_clone)
--deny=clippy::used_underscore_binding \
"${nightly_clippy_allows[@]}"

# temporarily run stable clippy as well to scan the codebase for
# `redundant_clone`s, which is disabled as nightly clippy is buggy:
# https://github.com/rust-lang/rust-clippy/issues/10577
#
# can't use --all-targets:
# error[E0554]: `#![feature]` may not be used on the stable release channel
_ scripts/cargo-for-all-lock-files.sh -- clippy --workspace --tests --bins --examples --features dummy-for-ci-check -- \
--deny=warnings \
--deny=clippy::default_trait_access \
--deny=clippy::integer_arithmetic \
--deny=clippy::used_underscore_binding

if [[ -n $CI ]]; then
# exclude from printing "Checking xxx ..."
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check > /dev/null
Expand Down

0 comments on commit 117ea40

Please sign in to comment.