diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-14 14:14:23 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-14 14:14:23 +0530 |
| commit | c1b43ef5892052454459d0be65d0dcae38aa86a2 (patch) | |
| tree | da37ab775ca96254c407522ffc824eca258c28df | |
| parent | 85159a4df8bfcd7c1d914600d3687bd0818234ca (diff) | |
| parent | 939510348d841b081dbfe49766d220740c580e97 (diff) | |
| download | rust-c1b43ef5892052454459d0be65d0dcae38aa86a2.tar.gz rust-c1b43ef5892052454459d0be65d0dcae38aa86a2.zip | |
Rollup merge of #99139 - jyn514:dist-tool-help, r=Mark-Simulacrum
Give a better error when `x dist` fails for an optional tool Before: ``` thread 'main' panicked at 'Unable to build RLS', dist.rs:42:9 ``` After: ``` thread 'main' panicked at 'Unable to build submodule tool RLS (use `missing-tools = true` to ignore this failure) note: not all tools are available on all nightlies help: see https://forge.rust-lang.org/infra/toolstate.html for more information', dist.rs:43:9 ``` Closes https://github.com/rust-lang/rust/issues/85683 by explaining better why the error is expected.
| -rw-r--r-- | src/bootstrap/dist.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 4aadc3943c9..cba013b5bb6 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -39,7 +39,11 @@ fn missing_tool(tool_name: &str, skip: bool) { if skip { println!("Unable to build {}, skipping dist", tool_name) } else { - panic!("Unable to build {}", tool_name) + let help = "note: not all tools are available on all nightlies\nhelp: see https://forge.rust-lang.org/infra/toolstate.html for more information"; + panic!( + "Unable to build submodule tool {} (use `missing-tools = true` to ignore this failure)\n{}", + tool_name, help + ) } } |
