Skip to content

Commit 70cf474

Browse files
Rollup merge of rust-lang#88830 - GuillaumeGomez:help-e0463, r=estebank
Add help for E0463 Fixes rust-lang#87871. r? `@estebank`
2 parents 1f8134d + c9a56cd commit 70cf474

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_metadata/src/locator.rs

Lines changed: 5 additions & 0 deletions
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)