This commit is contained in:
Rocco 2020-04-07 15:23:43 +02:00 committed by GitHub
parent 805462e971
commit 79c8ae8299
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",