Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kani-driver/src/call_cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ crate-type = ["lib"]
pub fn cargo_metadata(&self, build_target: &str) -> Result<Metadata> {
let mut cmd = MetadataCommand::new();

// Use Kani's toolchain when running `cargo metadata`
cmd.cargo_path(env!("CARGO"));

// restrict metadata command to host platform. References:
// https://github.com/rust-lang/rust-analyzer/issues/6908
// https://github.com/rust-lang/rust-analyzer/pull/6912
Expand Down
Loading