We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a4ec5d commit 9501d04Copy full SHA for 9501d04
rustup-toolchain
@@ -30,17 +30,17 @@ fi
30
echo "$NEW_COMMIT" > rust-version
31
32
# Check if we already are at that commit.
33
-CUR_COMMIT=$(rustc +miri --version -v | egrep "^commit-hash: " | cut -d " " -f 2)
+CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)
34
if [[ "$CUR_COMMIT" == "$NEW_COMMIT" ]]; then
35
echo "miri toolchain is already at commit $CUR_COMMIT."
36
rustup override set miri
37
exit 0
38
fi
39
40
-# Cleanup.
41
-cargo +nightly clean # Use nightly cargo as miri toolchain might be broken.
42
-rustup toolchain uninstall miri
43
-
44
# Install and setup new toolchain.
+rustup toolchain uninstall miri
45
rustup-toolchain-install-master -n miri -c rust-src -c rustc-dev -- "$NEW_COMMIT"
46
+
+# Cleanup.
+cargo clean
0 commit comments