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

Commit ffa26ea

Browse files
committed
Temporarily use stable clippy for redundant_clone
1 parent 929fe01 commit ffa26ea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ci/test-checks.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,18 @@ nightly_clippy_allows=(--allow=clippy::redundant_clone)
8585
--deny=clippy::used_underscore_binding \
8686
"${nightly_clippy_allows[@]}"
8787

88+
# temporarily run stable clippy as well to scan the codebase for
89+
# `redundant_clone`s, which is disabled as nightly clippy is buggy:
90+
# https://github.com/rust-lang/rust-clippy/issues/10577
91+
#
92+
# can't use --all-targets:
93+
# error[E0554]: `#![feature]` may not be used on the stable release channel
94+
_ scripts/cargo-for-all-lock-files.sh -- clippy --workspace --tests --bins --examples --features dummy-for-ci-check -- \
95+
--deny=warnings \
96+
--deny=clippy::default_trait_access \
97+
--deny=clippy::integer_arithmetic \
98+
--deny=clippy::used_underscore_binding
99+
88100
if [[ -n $CI ]]; then
89101
# exclude from printing "Checking xxx ..."
90102
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check > /dev/null

0 commit comments

Comments
 (0)