Skip to content

Commit 09a23b7

Browse files
authored
increase the timeout for running rustc --version
Fixes #1312
1 parent 9b1b54a commit 09a23b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup-cli/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pub fn rustc_version(toolchain: &Toolchain) -> String {
235235
// we guard against such cases by enforcing a reasonable timeout to read.
236236
let mut line1 = None;
237237
if let Ok(mut child) = cmd.spawn() {
238-
let timeout = Duration::new(3, 0);
238+
let timeout = Duration::new(10, 0);
239239
match child.wait_timeout(timeout) {
240240
Ok(Some(status)) if status.success() => {
241241
let out = child.stdout.expect("Child::stdout requested but not present");

0 commit comments

Comments
 (0)