mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 13:07:37 +00:00
Add help for E0463
This commit is contained in:
parent
1c858ba5bf
commit
c9a56cdc58
@ -1095,6 +1095,11 @@ impl CrateError {
|
|||||||
== Symbol::intern(&sess.opts.debugging_opts.profiler_runtime)
|
== Symbol::intern(&sess.opts.debugging_opts.profiler_runtime)
|
||||||
{
|
{
|
||||||
err.note(&"the compiler may have been built without the 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.span_label(span, "can't find crate");
|
||||||
err
|
err
|
||||||
|
Loading…
Reference in New Issue
Block a user