From 79c8ae82998491cf933ece651782d4b157369fc6 Mon Sep 17 00:00:00 2001 From: Rocco Date: Tue, 7 Apr 2020 15:23:43 +0200 Subject: [PATCH] Compatibility for rust-lang/rust#69926 --- tests/testsuite/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index ea84beea17c..e8bffe5d1b0 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -3175,13 +3175,13 @@ fn compiler_json_error_format() { // Use `jobs=1` to ensure that the order of messages is consistent. p.cargo("build -v --message-format=json --jobs=1") - .with_json(&output("false")) + .with_json_contains_unordered(&output("false")) .run(); // With fresh build, we should repeat the artifacts, // and replay the cached compiler warnings. p.cargo("build -v --message-format=json --jobs=1") - .with_json(&output("true")) + .with_json_contains_unordered(&output("true")) .run(); } @@ -3210,7 +3210,7 @@ fn message_format_json_forward_stderr() { .build(); p.cargo("rustc --release --bin foo --message-format JSON") - .with_json( + .with_json_contains_unordered( r#" { "reason":"compiler-message",