Temporarily use stable clippy for redundant_clone (#31692)

This commit is contained in:
Ryo Onodera 2023-05-18 06:09:23 +09:00 committed by GitHub
parent 3f625e47df
commit bd8289e114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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