1
Fork 0

Rollup merge of #88830 - GuillaumeGomez:help-e0463, r=estebank

Add help for E0463

Fixes #87871.

r? ```@estebank```
This commit is contained in:
Jubilee 2021-09-11 08:23:44 -07:00 committed by GitHub
commit 2cfafa6a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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