Merge pull request #4432 from RalfJung/no-metadata

./miri toolchain: no need to run 'cargo metadata'
This commit is contained in:
Ralf Jung 2025-07-01 05:56:12 +00:00 committed by GitHub
commit d72b15b883
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(())
}