File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ export CARGO_TARGET_DIR=`pwd`/target/
2323
2424# Perform various checks for lint registration
2525./util/dev update_lints --check
26- cargo +nightly fmt --all -- --check
2726
2827# Check running clippy-driver without cargo
2928(
@@ -50,29 +49,5 @@ cargo +nightly fmt --all -- --check
5049 # TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR
5150)
5251
53- # make sure tests are formatted
54-
55- # some lints are sensitive to formatting, exclude some files
56- tests_need_reformatting=" false"
57- # switch to nightly
58- rustup override set nightly
59- # avoid loop spam and allow cmds with exit status != 0
60- set +ex
61-
62- for file in ` find tests | grep " \.rs$" ` ; do
63- rustfmt ${file} --check
64- if [ $? -ne 0 ]; then
65- echo " ${file} needs reformatting!"
66- tests_need_reformatting=" true"
67- fi
68- done
69-
70- set -ex # reset
71-
72- if [ " ${tests_need_reformatting} " == " true" ] ; then
73- echo " Tests need reformatting!"
74- exit 2
75- fi
76-
7752# switch back to master
7853# rustup override set master
You can’t perform that action at this time.
0 commit comments