We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721f688 commit bcc309fCopy full SHA for bcc309f
ci/base-tests.sh
@@ -42,9 +42,13 @@ set +x
42
43
# some lints are sensitive to formatting, exclude some files
44
needs_formatting=false
45
+# switch to nightly
46
+rustup default nightly
47
for file in `find tests -not -path "tests/ui/methods.rs" -not -path "tests/ui/format.rs" -not -path "tests/ui/formatting.rs" -not -path "tests/ui/empty_line_after_outer_attribute.rs" -not -path "tests/ui/double_parens.rs" -not -path "tests/ui/doc.rs" -not -path "tests/ui/unused_unit.rs" | grep "\.rs$"` ; do
48
rustfmt ${file} --check || echo "${file} needs reformatting!" ; needs_formatting=true
49
done
50
+# switch back to master
51
+rustup default master
52
53
if [ "${needs_reformatting}" = true ] ; then
54
echo "Tests need reformatting!"
0 commit comments