From a989b605bc6b7f617469a1b527eafcc8e11c712b Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Thu, 21 Feb 2019 12:32:03 +0100 Subject: [PATCH] Allow more time for `rustup-init install` Due to rust-lang/rustup.rs#1540, installing the docs on Windows can be slow enough to time out a fresh rustc install. Marking this `Command` as `quiet` increases the timeout. --- src/tools/rustup.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/rustup.rs b/src/tools/rustup.rs index 76b573ced..eee1a7f88 100644 --- a/src/tools/rustup.rs +++ b/src/tools/rustup.rs @@ -59,6 +59,8 @@ impl InstallableTool for Rustup { native::make_executable(installer)?; } + // TODO(rustup.rs#998): Remove `.quiet(true)` once rust-docs is no longer a mandatory + // component. RunCommand::new(installer.to_string_lossy().as_ref()) .args(&[ "-y", @@ -66,6 +68,7 @@ impl InstallableTool for Rustup { "--default-toolchain", MAIN_TOOLCHAIN_NAME, ]) + .quiet(true) .local_rustup(true) .run() .with_context(|_| "unable to install rustup")?;