From 103ed0e5c800f87a27fe9c85902e8e6a3f443b52 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Wed, 12 Apr 2023 12:15:16 +0100 Subject: [PATCH] bootstrap: switch from `stream_cargo` to `try_run_quiet` It is unnecessary to stream cargo JSON output. --- src/bootstrap/tool.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 842aa91ad5a54..c732fd7e8335e 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -119,9 +119,9 @@ impl Step for ToolBuild { &self.target, ); builder.info(&msg); - let is_expected = compile::stream_cargo(builder, cargo, vec![], &mut |_msg| { - return; - }); + + let mut cargo = Command::from(cargo); + let is_expected = builder.try_run_quiet(&mut cargo); builder.save_toolstate( tool,