File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,13 @@ set +x
42
42
43
43
# some lints are sensitive to formatting, exclude some files
44
44
needs_formatting=false
45
+ # switch to nightly
46
+ rustup default nightly
45
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
46
48
rustfmt ${file} --check || echo " ${file} needs reformatting!" ; needs_formatting=true
47
49
done
50
+ # switch back to master
51
+ rustup default master
48
52
49
53
if [ " ${needs_reformatting} " = true ] ; then
50
54
echo " Tests need reformatting!"
You can’t perform that action at this time.
0 commit comments