##// END OF EJS Templates
rust-format: pin the formatted to a specific nightly version...
marmoute -
r46601:d42809b6 default
parent child Browse files
Show More
@@ -1058,11 +1058,12 b' def has_pytype():'
1058 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17')
1058 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17')
1059
1059
1060
1060
1061 @check("rustfmt", "rustfmt tool")
1061 @check("rustfmt", "rustfmt tool at version nightly-2020-10-04")
1062 def has_rustfmt():
1062 def has_rustfmt():
1063 # We use Nightly's rustfmt due to current unstable config options.
1063 # We use Nightly's rustfmt due to current unstable config options.
1064 return matchoutput(
1064 return matchoutput(
1065 '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt'
1065 '`rustup which --toolchain nightly-2020-10-04 rustfmt` --version',
1066 b'rustfmt',
1066 )
1067 )
1067
1068
1068
1069
@@ -3,7 +3,7 b''
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ . "$TESTDIR/helpers-testrepo.sh"
4
4
5 $ cd "$TESTDIR"/..
5 $ cd "$TESTDIR"/..
6 $ RUSTFMT=$(rustup which --toolchain nightly rustfmt)
6 $ RUSTFMT=$(rustup which --toolchain nightly-2020-10-04 rustfmt)
7 $ for f in `testrepohg files 'glob:**/*.rs'` ; do
7 $ for f in `testrepohg files 'glob:**/*.rs'` ; do
8 > $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
8 > $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
9 > done
9 > done
General Comments 0
You need to be logged in to leave comments. Login now