Skip to content

Commit 2cfafa6

Browse files
Rollup merge of #88830 - GuillaumeGomez:help-e0463, r=estebank
Add help for E0463 Fixes #87871. r? ```@estebank```
2 parents 5648859 + c9a56cd commit 2cfafa6

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)