File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ pub fn rustc_version(toolchain: &Toolchain) -> String {
235
235
// we guard against such cases by enforcing a reasonable timeout to read.
236
236
let mut line1 = None ;
237
237
if let Ok ( mut child) = cmd. spawn ( ) {
238
- let timeout = Duration :: new ( 1 , 0 ) ;
238
+ let timeout = Duration :: new ( 3 , 0 ) ;
239
239
match child. wait_timeout ( timeout) {
240
240
Ok ( Some ( status) ) if status. success ( ) => {
241
241
let out = child. stdout . expect ( "Child::stdout requested but not present" ) ;
@@ -248,6 +248,7 @@ pub fn rustc_version(toolchain: &Toolchain) -> String {
248
248
}
249
249
Ok ( None ) => {
250
250
let _ = child. kill ( ) ;
251
+ return String :: from ( "(timeout reading rustc version)" )
251
252
}
252
253
Ok ( Some ( _) ) | Err ( _) => { }
253
254
}
You can’t perform that action at this time.
0 commit comments