From 87d3272940806cdbad166e24cde28040e8395a26 Mon Sep 17 00:00:00 2001 From: kennytm Date: Tue, 18 Apr 2017 00:07:36 +0800 Subject: [PATCH] Pass `--format-version 1` to `cargo metadata`. Suppress warning introduced by rust-lang/cargo#3841. --- src/bootstrap/metadata.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/metadata.rs b/src/bootstrap/metadata.rs index 5918fe41e7c8b..7b6b01655df58 100644 --- a/src/bootstrap/metadata.rs +++ b/src/bootstrap/metadata.rs @@ -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();