diff --git a/tools/build.sh b/tools/build.sh index c803417c..2328db8d 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -242,6 +242,10 @@ if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ] check_cfg+=" --check-cfg=cfg(portable_atomic_target_feature,values($(IFS=',' && echo "${known_target_feature_values[*]}")))" check_cfg+=" --check-cfg=cfg($(IFS=',' && echo "${known_cfgs[*]}"))" subcmd=clippy + # This lint is buggy and also crate-level #![allow(..)] doesn't work. + # https://github.com/rust-lang/rust-clippy/issues/12537 + # https://github.com/rust-lang/rust-clippy/issues/12538 + export RUSTFLAGS="${RUSTFLAGS:-} -A clippy::duplicated_attributes" rustup ${pre_args[@]+"${pre_args[@]}"} component add clippy &>/dev/null target_dir="${target_dir}/check-cfg" if [[ -n "${TESTS:-}" ]]; then