Skip to content

Commit

Permalink
Pass --format-version 1 to cargo metadata.
Browse files Browse the repository at this point in the history
Suppress warning introduced by rust-lang/cargo#3841.
  • Loading branch information
kennytm committed Apr 22, 2017
1 parent 1785bca commit 87d3272
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fn build_krate(build: &mut Build, krate: &str) {
// the dependency graph and what `-p` arguments there are.
let mut cargo = Command::new(&build.cargo);
cargo.arg("metadata")
.arg("--format-version").arg("1")
.arg("--manifest-path").arg(build.src.join(krate).join("Cargo.toml"));
let output = output(&mut cargo);
let output: Output = json::decode(&output).unwrap();
Expand Down

0 comments on commit 87d3272

Please sign in to comment.