Skip to content

Commit 12307bd

Browse files
committed
ditch which dependency
1 parent 8c0d58d commit 12307bd

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

miri-script/Cargo.lock

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

miri-script/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"
1817
walkdir = "2.3"
1918
itertools = "0.14"
2019
path_macro = "1.0"

miri-script/src/commands.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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()?;

0 commit comments

Comments
 (0)