Provide a better error message when the target sysroot is not installed #37131
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Today when you compile for a target that does not exist rustc gives the standard message for failing to find a crate, for
std
. We can and should be more explicit about what this means. Actually what is almost certainly happening is that you don't have that target installed:It could instead say:
A reasonable heuristic for printing this might be if the crate is named
std
orcore
and the sysroot is not overridden.The text was updated successfully, but these errors were encountered: