##// END OF EJS Templates
hghave: update rustfmt criterion...
Raphaël Gomès -
r49615:090346b0 stable
parent child Browse files
Show More
@@ -1121,11 +1121,11 b' def has_pytype():'
1121 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17')
1121 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17')
1122
1122
1123
1123
1124 @check("rustfmt", "rustfmt tool at version nightly-2020-10-04")
1124 @check("rustfmt", "rustfmt tool at version nightly-2021-11-02")
1125 def has_rustfmt():
1125 def has_rustfmt():
1126 # We use Nightly's rustfmt due to current unstable config options.
1126 # We use Nightly's rustfmt due to current unstable config options.
1127 return matchoutput(
1127 return matchoutput(
1128 '`rustup which --toolchain nightly-2020-10-04 rustfmt` --version',
1128 '`rustup which --toolchain nightly-2021-11-02 rustfmt` --version',
1129 b'rustfmt',
1129 b'rustfmt',
1130 )
1130 )
1131
1131
@@ -3,6 +3,8 b''
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ . "$TESTDIR/helpers-testrepo.sh"
4
4
5 $ cd "$TESTDIR"/..
5 $ cd "$TESTDIR"/..
6
7 Warning: Keep this in sync with hghave.py
6 $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
8 $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
7 $ for f in `testrepohg files 'glob:**/*.rs'` ; do
9 $ for f in `testrepohg files 'glob:**/*.rs'` ; do
8 > $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
10 > $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
General Comments 0
You need to be logged in to leave comments. Login now