diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-06-14 17:10:07 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-06-14 17:10:07 +0530 |
| commit | c67f7ae27f4fdd364ec92c71b084cfea5cee1245 (patch) | |
| tree | a89364162fc0ab85685c9dc43b835c95cc479bf1 | |
| parent | e11e6400139112ade157c7a517f84a4521d055b4 (diff) | |
| download | rust-c67f7ae27f4fdd364ec92c71b084cfea5cee1245.tar.gz rust-c67f7ae27f4fdd364ec92c71b084cfea5cee1245.zip | |
replace all instances of check_run in download with execution context
| -rw-r--r-- | src/bootstrap/src/core/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/download.rs b/src/bootstrap/src/core/download.rs index 88a58e580e6..5822ccb833e 100644 --- a/src/bootstrap/src/core/download.rs +++ b/src/bootstrap/src/core/download.rs @@ -214,7 +214,7 @@ impl Config { // options should be kept in sync with // src/bootstrap/src/core/download.rs // for consistency - let mut curl = command("curl"); + let mut curl = command("curl").allow_failure(); curl.args([ // follow redirect "--location", @@ -255,7 +255,7 @@ impl Config { curl.arg("--retry-all-errors"); } curl.arg(url); - if !self.check_run(&mut curl) { + if !curl.run(&self) { if self.host_target.contains("windows-msvc") { eprintln!("Fallback to PowerShell"); for _ in 0..3 { |
