Skip to content

Commit 1ed90a4

Browse files
author
Carolyn Zech
committed
use our toolchain when invoking cargo metadata
1 parent 5d76510 commit 1ed90a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kani-driver/src/call_cargo.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ crate-type = ["lib"]
247247
pub fn cargo_metadata(&self, build_target: &str) -> Result<Metadata> {
248248
let mut cmd = MetadataCommand::new();
249249

250+
// Use Kani's toolchain when running `cargo metadata`
251+
cmd.cargo_path(env!("CARGO"));
252+
250253
// restrict metadata command to host platform. References:
251254
// https://github.com/rust-lang/rust-analyzer/issues/6908
252255
// https://github.com/rust-lang/rust-analyzer/pull/6912

0 commit comments

Comments
 (0)