We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo metadata
1 parent 5d76510 commit 1ed90a4Copy full SHA for 1ed90a4
kani-driver/src/call_cargo.rs
@@ -247,6 +247,9 @@ crate-type = ["lib"]
247
pub fn cargo_metadata(&self, build_target: &str) -> Result<Metadata> {
248
let mut cmd = MetadataCommand::new();
249
250
+ // Use Kani's toolchain when running `cargo metadata`
251
+ cmd.cargo_path(env!("CARGO"));
252
+
253
// restrict metadata command to host platform. References:
254
// https://github.com/rust-lang/rust-analyzer/issues/6908
255
// https://github.com/rust-lang/rust-analyzer/pull/6912
0 commit comments