about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-30 16:25:46 +0200
committerGitHub <noreply@github.com>2023-04-30 16:25:46 +0200
commitb64d4c2f26f9cf781be4d0d2e378f5a475aa66d6 (patch)
treed96d540c5af2aeefab6a7b6a9cafd850c8ddd269 /compiler/rustc_parse/src
parent89158e210ce0b9550b42c65ede244087f2e144b5 (diff)
parentd50ce1536cf9ce101e08e1f9913076762a9390a6 (diff)
downloadrust-b64d4c2f26f9cf781be4d0d2e378f5a475aa66d6.tar.gz
rust-b64d4c2f26f9cf781be4d0d2e378f5a475aa66d6.zip
Rollup merge of #110118 - jyn514:download-error, r=Mark-Simulacrum
download-rustc: Give a better error message if artifacts can't be dowloaded

It should be very rare in practice to happen; people would need to both have `download-ci-llvm` disabled and `download-rustc` enabled. I think it may be more common if we start turning this on by default, though.

Helps with https://github.com/rust-lang/rust/issues/81930.

Before:
```
downloading https://ci-artifacts.rust-lang.org/rustc-builds/bf5cad8e775fb326465e5c1b98693e5d259da156/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz
curl: (22) The requested URL returned error: 404
```

After:
```
downloading https://ci-artifacts.rust-lang.org/rustc-builds/bf5cad8e775fb326465e5c1b98693e5d259da156/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz
curl: (22) The requested URL returned error: 404

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
```
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions