mirror of
https://github.com/rust-lang/cargo
synced 2024-10-01 05:23:56 +00:00
Compatibility for rust-lang/rust#69926
This commit is contained in:
parent
805462e971
commit
79c8ae8299
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue