about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-07-01 05:56:12 +0000
committerGitHub <noreply@github.com>2025-07-01 05:56:12 +0000
commitd72b15b883fb027e7f4265f4f549f61456167e3f (patch)
tree15994b6e915d45847a1ceb7f79d00b2cee035775
parent83d519c6d0647b25fb1562bcb60e8a3ed244db5a (diff)
parentc52d5222981879f44e2cb28a1a62ae659ea2e19b (diff)
downloadrust-d72b15b883fb027e7f4265f4f549f61456167e3f.tar.gz
rust-d72b15b883fb027e7f4265f4f549f61456167e3f.zip
Merge pull request #4432 from RalfJung/no-metadata
./miri toolchain: no need to run 'cargo metadata'
-rw-r--r--src/tools/miri/miri-script/src/commands.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs
index a3778215019..e948beef004 100644
--- a/src/tools/miri/miri-script/src/commands.rs
+++ b/src/tools/miri/miri-script/src/commands.rs
@@ -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(())
     }