2777: Better error message r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-01-09 10:26:22 +00:00 committed by GitHub
commit 5ced6f4be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,9 +53,10 @@ impl Sysroot {
if !src.exists() {
Err(format!(
"can't load standard library from sysroot\n\
{:?}\n\
{}\n\
(discovered via `rustc --print sysroot`)\n\
try running `rustup component add rust-src` or set `RUST_SRC_PATH`",
src,
src.display(),
))?;
}