Skip to content

Commit cf96cba

Browse files
authored
Merge pull request #4432 from RalfJung/no-metadata
./miri toolchain: no need to run 'cargo metadata'
2 parents c6801ef + 8c704e3 commit cf96cba

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

miri-script/src/commands.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,6 @@ impl Command {
231231
cmd!(sh, "rustup override set miri").run()?;
232232
// Cleanup.
233233
cmd!(sh, "cargo clean").run()?;
234-
// Call `cargo metadata` on the sources in case that changes the lockfile
235-
// (which fails under some setups when it is done from inside vscode).
236-
let sysroot = cmd!(sh, "rustc --print sysroot").read()?;
237-
let sysroot = sysroot.trim();
238-
cmd!(sh, "cargo metadata --format-version 1 --manifest-path {sysroot}/lib/rustlib/rustc-src/rust/compiler/rustc/Cargo.toml").ignore_stdout().run()?;
239234
Ok(())
240235
}
241236

0 commit comments

Comments
 (0)