tests/hghave.py
changeset 45987 d42809b6b10f
parent 45943 a9797b49fb69
child 46097 1b5e0d0bdb05
--- a/tests/hghave.py	Fri Nov 20 11:22:28 2020 +0100
+++ b/tests/hghave.py	Mon Nov 23 14:33:58 2020 +0100
@@ -1058,11 +1058,12 @@
     return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17')
 
 
-@check("rustfmt", "rustfmt tool")
+@check("rustfmt", "rustfmt tool at version nightly-2020-10-04")
 def has_rustfmt():
     # We use Nightly's rustfmt due to current unstable config options.
     return matchoutput(
-        '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt'
+        '`rustup which --toolchain nightly-2020-10-04 rustfmt` --version',
+        b'rustfmt',
     )