File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3030echo " $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)
3434if [[ " $CUR_COMMIT " == " $NEW_COMMIT " ]]; then
3535 echo " miri toolchain is already at commit $CUR_COMMIT ."
3636 rustup override set miri
3737 exit 0
3838fi
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
4542rustup-toolchain-install-master -n miri -c rust-src -c rustc-dev -- " $NEW_COMMIT "
4643rustup override set miri
44+
45+ # Cleanup.
46+ cargo clean
You can’t perform that action at this time.
0 commit comments