mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Merge #2777
2777: Better error message r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
5ced6f4be3
1 changed files with 3 additions and 2 deletions
|
@ -53,9 +53,10 @@ impl Sysroot {
|
||||||
if !src.exists() {
|
if !src.exists() {
|
||||||
Err(format!(
|
Err(format!(
|
||||||
"can't load standard library from sysroot\n\
|
"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`",
|
try running `rustup component add rust-src` or set `RUST_SRC_PATH`",
|
||||||
src,
|
src.display(),
|
||||||
))?;
|
))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue