Remove format checks from CI script

This commit is contained in:
Michael Wright 2019-07-03 07:35:55 +02:00 committed by flip1995
parent aeac3da2c1
commit 503474a647
No known key found for this signature in database
GPG Key ID: 01C836B640FFDFB1

View File

@ -24,7 +24,6 @@ export CARGO_TARGET_DIR=`pwd`/target/
# Perform various checks for lint registration # Perform various checks for lint registration
./util/dev update_lints --check ./util/dev update_lints --check
./util/dev --limit-stderr-length ./util/dev --limit-stderr-length
cargo +nightly fmt --all -- --check
# Check running clippy-driver without cargo # Check running clippy-driver without cargo
( (
@ -60,16 +59,6 @@ rustup override set nightly
# avoid loop spam and allow cmds with exit status != 0 # avoid loop spam and allow cmds with exit status != 0
set +ex set +ex
# Excluding `ice-3891.rs` because the code triggers a rustc parse error which
# makes rustfmt fail.
for file in `find tests -not -path "tests/ui/crashes/ice-3891.rs" | grep "\.rs$"` ; do
rustfmt ${file} --check
if [ $? -ne 0 ]; then
echo "${file} needs reformatting!"
tests_need_reformatting="true"
fi
done
set -ex # reset set -ex # reset
if [ "${tests_need_reformatting}" == "true" ] ; then if [ "${tests_need_reformatting}" == "true" ] ; then