about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/download.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs
index 133cda639d9..6405fe3da02 100644
--- a/src/bootstrap/download.rs
+++ b/src/bootstrap/download.rs
@@ -541,7 +541,18 @@ impl Config {
             None
         };
 
-        self.download_file(&format!("{base_url}/{url}"), &tarball, "");
+        let mut help_on_error = "";
+        if destination == "ci-rustc" {
+            help_on_error = "error: failed to download pre-built rustc from CI
+
+note: old builds get deleted after a certain time
+help: if trying to compile an old commit of rustc, disable `download-rustc` in config.toml:
+
+[rust]
+download-rustc = false
+";
+        }
+        self.download_file(&format!("{base_url}/{url}"), &tarball, help_on_error);
         if let Some(sha256) = checksum {
             if !self.verify(&tarball, sha256) {
                 panic!("failed to verify {}", tarball.display());