Skip to content

Commit c9a56cd

Browse files
Add help for E0463
1 parent 1c858ba commit c9a56cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_metadata/src/locator.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,11 @@ impl CrateError {
10951095
== Symbol::intern(&sess.opts.debugging_opts.profiler_runtime)
10961096
{
10971097
err.note(&"the compiler may have been built without the profiler runtime");
1098+
} else if crate_name.as_str().starts_with("rustc_") {
1099+
err.help(
1100+
"maybe you need to install the missing components with: \
1101+
`rustup component add rust-src rustc-dev llvm-tools-preview`",
1102+
);
10981103
}
10991104
err.span_label(span, "can't find crate");
11001105
err

0 commit comments

Comments
 (0)