We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89158e2 + d50ce15 commit b64d4c2Copy full SHA for b64d4c2
src/bootstrap/download.rs
@@ -541,7 +541,18 @@ impl Config {
541
None
542
};
543
544
- self.download_file(&format!("{base_url}/{url}"), &tarball, "");
+ let mut help_on_error = "";
545
+ if destination == "ci-rustc" {
546
+ help_on_error = "error: failed to download pre-built rustc from CI
547
+
548
+note: old builds get deleted after a certain time
549
+help: if trying to compile an old commit of rustc, disable `download-rustc` in config.toml:
550
551
+[rust]
552
+download-rustc = false
553
+";
554
+ }
555
+ self.download_file(&format!("{base_url}/{url}"), &tarball, help_on_error);
556
if let Some(sha256) = checksum {
557
if !self.verify(&tarball, sha256) {
558
panic!("failed to verify {}", tarball.display());
0 commit comments