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 30
30
echo " $NEW_COMMIT " > rust-version
31
31
32
32
# 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)
34
34
if [[ " $CUR_COMMIT " == " $NEW_COMMIT " ]]; then
35
35
echo " miri toolchain is already at commit $CUR_COMMIT ."
36
36
rustup override set miri
37
37
exit 0
38
38
fi
39
39
40
- # Cleanup.
41
- cargo +nightly clean # Use nightly cargo as miri toolchain might be broken.
42
- rustup toolchain uninstall miri
43
-
44
40
# Install and setup new toolchain.
41
+ rustup toolchain uninstall miri
45
42
rustup-toolchain-install-master -n miri -c rust-src -c rustc-dev -- " $NEW_COMMIT "
46
43
rustup override set miri
44
+
45
+ # Cleanup.
46
+ cargo clean
You can’t perform that action at this time.
0 commit comments