Skip to content

Commit

Permalink
[x] render diagnostics during initial nextest build
Browse files Browse the repository at this point in the history
I thought I'd have to implement this through providing some sort of
streaming interface at first, but turns out cargo has built-in support
for rendering diagnostics while producing JSON messages.

Closes: aptos-labs#8087
  • Loading branch information
sunshowers authored and bors-libra committed Mar 31, 2021
1 parent 8adbd49 commit 07a3b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/x/src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl<'a> CargoCommand<'a> {
vec![]
} else {
let mut cargo = self.prepare_cargo(packages);
cargo.args(&["--message-format", "json"]);
cargo.args(&["--message-format", "json-render-diagnostics"]);
cargo.run_with_output()?
};

Expand Down

0 comments on commit 07a3b40

Please sign in to comment.