File tree Expand file tree Collapse file tree 3 files changed +3
-30
lines changed
src/tools/miri/miri-script Expand file tree Collapse file tree 3 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,6 @@ version = "1.15.0"
149149source = " registry+https://github.com/rust-lang/crates.io-index"
150150checksum = " 48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
151151
152- [[package ]]
153- name = " env_home"
154- version = " 0.1.0"
155- source = " registry+https://github.com/rust-lang/crates.io-index"
156- checksum = " c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
157-
158152[[package ]]
159153name = " errno"
160154version = " 0.3.13"
@@ -266,7 +260,6 @@ dependencies = [
266260 " shell-words" ,
267261 " tempfile" ,
268262 " walkdir" ,
269- " which" ,
270263 " xshell" ,
271264]
272265
@@ -497,18 +490,6 @@ dependencies = [
497490 " wit-bindgen-rt" ,
498491]
499492
500- [[package ]]
501- name = " which"
502- version = " 7.0.3"
503- source = " registry+https://github.com/rust-lang/crates.io-index"
504- checksum = " 24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
505- dependencies = [
506- " either" ,
507- " env_home" ,
508- " rustix" ,
509- " winsafe" ,
510- ]
511-
512493[[package ]]
513494name = " winapi-util"
514495version = " 0.1.9"
@@ -664,12 +645,6 @@ version = "0.53.0"
664645source = " registry+https://github.com/rust-lang/crates.io-index"
665646checksum = " 271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
666647
667- [[package ]]
668- name = " winsafe"
669- version = " 0.0.19"
670- source = " registry+https://github.com/rust-lang/crates.io-index"
671- checksum = " d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
672-
673648[[package ]]
674649name = " wit-bindgen-rt"
675650version = " 0.39.0"
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ rust-version = "1.85"
1414# This is needed to make this package build on stable when the parent package uses unstable cargo features.
1515
1616[dependencies ]
17- which = " 7"
1817walkdir = " 2.3"
1918itertools = " 0.14"
2019path_macro = " 1.0"
Original file line number Diff line number Diff line change @@ -198,9 +198,6 @@ impl Command {
198198 }
199199
200200 fn toolchain ( flags : Vec < String > ) -> Result < ( ) > {
201- // Make sure rustup-toolchain-install-master is installed.
202- which:: which ( "rustup-toolchain-install-master" )
203- . context ( "Please install rustup-toolchain-install-master by running 'cargo install rustup-toolchain-install-master'" ) ?;
204201 let sh = Shell :: new ( ) ?;
205202 sh. change_dir ( miri_dir ( ) ?) ;
206203 let new_commit = sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ;
@@ -227,7 +224,9 @@ impl Command {
227224 // Install and setup new toolchain.
228225 cmd ! ( sh, "rustup toolchain uninstall miri" ) . run ( ) ?;
229226
230- cmd ! ( sh, "rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt -c clippy {flags...} -- {new_commit}" ) . run ( ) ?;
227+ cmd ! ( sh, "rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt -c clippy {flags...} -- {new_commit}" )
228+ . run ( )
229+ . context ( "Failed to run rustup-toolchain-install-master. If it is not installed, run 'cargo install rustup-toolchain-install-master'." ) ?;
231230 cmd ! ( sh, "rustup override set miri" ) . run ( ) ?;
232231 // Cleanup.
233232 cmd ! ( sh, "cargo clean" ) . run ( ) ?;
You can’t perform that action at this time.
0 commit comments