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"
149
149
source = " registry+https://github.com/rust-lang/crates.io-index"
150
150
checksum = " 48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
151
151
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
-
158
152
[[package ]]
159
153
name = " errno"
160
154
version = " 0.3.13"
@@ -266,7 +260,6 @@ dependencies = [
266
260
" shell-words" ,
267
261
" tempfile" ,
268
262
" walkdir" ,
269
- " which" ,
270
263
" xshell" ,
271
264
]
272
265
@@ -497,18 +490,6 @@ dependencies = [
497
490
" wit-bindgen-rt" ,
498
491
]
499
492
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
-
512
493
[[package ]]
513
494
name = " winapi-util"
514
495
version = " 0.1.9"
@@ -664,12 +645,6 @@ version = "0.53.0"
664
645
source = " registry+https://github.com/rust-lang/crates.io-index"
665
646
checksum = " 271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
666
647
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
-
673
648
[[package ]]
674
649
name = " wit-bindgen-rt"
675
650
version = " 0.39.0"
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ rust-version = "1.85"
14
14
# This is needed to make this package build on stable when the parent package uses unstable cargo features.
15
15
16
16
[dependencies ]
17
- which = " 7"
18
17
walkdir = " 2.3"
19
18
itertools = " 0.14"
20
19
path_macro = " 1.0"
Original file line number Diff line number Diff line change @@ -198,9 +198,6 @@ impl Command {
198
198
}
199
199
200
200
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'" ) ?;
204
201
let sh = Shell :: new ( ) ?;
205
202
sh. change_dir ( miri_dir ( ) ?) ;
206
203
let new_commit = sh. read_file ( "rust-version" ) ?. trim ( ) . to_owned ( ) ;
@@ -227,7 +224,9 @@ impl Command {
227
224
// Install and setup new toolchain.
228
225
cmd ! ( sh, "rustup toolchain uninstall miri" ) . run ( ) ?;
229
226
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'." ) ?;
231
230
cmd ! ( sh, "rustup override set miri" ) . run ( ) ?;
232
231
// Cleanup.
233
232
cmd ! ( sh, "cargo clean" ) . run ( ) ?;
You can’t perform that action at this time.
0 commit comments