mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Remove format checks from CI script
This commit is contained in:
parent
aeac3da2c1
commit
503474a647
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user