mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
Auto merge of #17836 - winstxnhdw:sysroot, r=Veykril
minor: log error when sysroot can't be discovered Closes #17808
This commit is contained in:
commit
56f63dfd8a
1 changed files with 4 additions and 4 deletions
|
@ -443,13 +443,13 @@ fn discover_sysroot_src_dir_or_add_component(
|
||||||
get_rust_src(sysroot_path)
|
get_rust_src(sysroot_path)
|
||||||
})
|
})
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| {
|
||||||
format_err!(
|
let error = "\
|
||||||
"\
|
|
||||||
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 the Rust source the same way you installed rustc";
|
||||||
)
|
tracing::error!(error);
|
||||||
|
format_err!(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue