Skip to content

Commit 9501d04

Browse files
committed
don't assume a nightly toolchain is installed
1 parent 0a4ec5d commit 9501d04

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rustup-toolchain

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ fi
3030
echo "$NEW_COMMIT" > rust-version
3131

3232
# Check if we already are at that commit.
33-
CUR_COMMIT=$(rustc +miri --version -v | egrep "^commit-hash: " | cut -d " " -f 2)
33+
CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | egrep "^commit-hash: " | cut -d " " -f 2)
3434
if [[ "$CUR_COMMIT" == "$NEW_COMMIT" ]]; then
3535
echo "miri toolchain is already at commit $CUR_COMMIT."
3636
rustup override set miri
3737
exit 0
3838
fi
3939

40-
# Cleanup.
41-
cargo +nightly clean # Use nightly cargo as miri toolchain might be broken.
42-
rustup toolchain uninstall miri
43-
4440
# Install and setup new toolchain.
41+
rustup toolchain uninstall miri
4542
rustup-toolchain-install-master -n miri -c rust-src -c rustc-dev -- "$NEW_COMMIT"
4643
rustup override set miri
44+
45+
# Cleanup.
46+
cargo clean

0 commit comments

Comments
 (0)