Skip to content

Commit

Permalink
Rollup merge of rust-lang#88830 - GuillaumeGomez:help-e0463, r=estebank
Browse files Browse the repository at this point in the history
Add help for E0463

Fixes rust-lang#87871.

r? ```@estebank```
  • Loading branch information
workingjubilee committed Sep 11, 2021
2 parents 5648859 + c9a56cd commit 2cfafa6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_metadata/src/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cfafa6

Please sign in to comment.