./miri toolchain: no need to run 'cargo metadata'

This commit is contained in:
Ralf Jung 2025-07-01 07:24:40 +02:00
parent 8bb5f8cae4
commit c52d522298

View file

@ -231,11 +231,6 @@ impl Command {
cmd!(sh, "rustup override set miri").run()?;
// Cleanup.
cmd!(sh, "cargo clean").run()?;
// Call `cargo metadata` on the sources in case that changes the lockfile
// (which fails under some setups when it is done from inside vscode).
let sysroot = cmd!(sh, "rustc --print sysroot").read()?;
let sysroot = sysroot.trim();
cmd!(sh, "cargo metadata --format-version 1 --manifest-path {sysroot}/lib/rustlib/rustc-src/rust/compiler/rustc/Cargo.toml").ignore_stdout().run()?;
Ok(())
}