Skip to content

Commit 365cae3

Browse files
committed
Fix detection of --json future-incompat
1 parent 8c7c35e commit 365cae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ impl TargetInfo {
183183

184184
let supports_json_future_incompat = rustc
185185
.cached_output(
186-
process.clone().arg("--json").arg("future-incompat"),
186+
process
187+
.clone()
188+
.args(&["--error-format", "json", "--json", "future-incompat"]),
187189
extra_fingerprint,
188190
)
189191
.is_ok();

0 commit comments

Comments
 (0)