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/
23
23
24
24
# Perform various checks for lint registration
25
25
./util/dev update_lints --check
26
- cargo +nightly fmt --all -- --check
27
26
28
27
# Check running clippy-driver without cargo
29
28
(
@@ -50,29 +49,5 @@ cargo +nightly fmt --all -- --check
50
49
# TODO: CLIPPY_CONF_DIR / CARGO_MANIFEST_DIR
51
50
)
52
51
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
-
77
52
# switch back to master
78
53
# rustup override set master
You can’t perform that action at this time.
0 commit comments