We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5648859 + c9a56cd commit 2cfafa6Copy full SHA for 2cfafa6
compiler/rustc_metadata/src/locator.rs
@@ -1095,6 +1095,11 @@ impl CrateError {
1095
== Symbol::intern(&sess.opts.debugging_opts.profiler_runtime)
1096
{
1097
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
+ );
1103
}
1104
err.span_label(span, "can't find crate");
1105
err
0 commit comments