diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-10 20:20:10 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-09-10 21:36:09 +0200 |
| commit | c9a56cdc58bbb51ece4510f4e54ef2fe26b7b771 (patch) | |
| tree | 2080bd561c892ff95389130f6e4777a63a791822 | |
| parent | 1c858ba5bf7bd06c1a970efbf77053c8380b3151 (diff) | |
| download | rust-c9a56cdc58bbb51ece4510f4e54ef2fe26b7b771.tar.gz rust-c9a56cdc58bbb51ece4510f4e54ef2fe26b7b771.zip | |
Add help for E0463
| -rw-r--r-- | compiler/rustc_metadata/src/locator.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_metadata/src/locator.rs b/compiler/rustc_metadata/src/locator.rs index d3512b6cf57..b6922e0d72a 100644 --- a/compiler/rustc_metadata/src/locator.rs +++ b/compiler/rustc_metadata/src/locator.rs @@ -1095,6 +1095,11 @@ impl CrateError { == Symbol::intern(&sess.opts.debugging_opts.profiler_runtime) { err.note(&"the compiler may have been built without the profiler runtime"); + } else if crate_name.as_str().starts_with("rustc_") { + err.help( + "maybe you need to install the missing components with: \ + `rustup component add rust-src rustc-dev llvm-tools-preview`", + ); } err.span_label(span, "can't find crate"); err |
