mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Fix missing rust-src message
This commit is contained in:
parent
c0bbbb3e5d
commit
8fc5f3deb5
1 changed files with 5 additions and 4 deletions
|
@ -444,13 +444,14 @@ fn discover_sysroot_src_dir_or_add_component(
|
||||||
get_rust_src(sysroot_path)
|
get_rust_src(sysroot_path)
|
||||||
})
|
})
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| {
|
||||||
let error = "\
|
tracing::error!(%sysroot_path, "can't load standard library, try installing `rust-src`");
|
||||||
|
format_err!(
|
||||||
|
"\
|
||||||
can't load standard library from sysroot
|
can't load standard library from sysroot
|
||||||
{sysroot_path}
|
{sysroot_path}
|
||||||
(discovered via `rustc --print sysroot`)
|
(discovered via `rustc --print sysroot`)
|
||||||
try installing the Rust source the same way you installed rustc";
|
try installing `rust-src` the same way you installed `rustc`"
|
||||||
tracing::error!(error);
|
)
|
||||||
format_err!(error)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue