mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Rollup merge of #88830 - GuillaumeGomez:help-e0463, r=estebank
Add help for E0463 Fixes #87871. r? ```@estebank```
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user