mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Don't fail workspace loading if sysroot can't be found
This commit is contained in:
parent
9814d79841
commit
b2598f4801
4 changed files with 121 additions and 79 deletions
|
@ -81,7 +81,7 @@ fn get_fake_sysroot() -> Sysroot {
|
|||
// fake sysroot, so we give them both the same path:
|
||||
let sysroot_dir = AbsPathBuf::assert(sysroot_path);
|
||||
let sysroot_src_dir = sysroot_dir.clone();
|
||||
Sysroot::load(sysroot_dir, sysroot_src_dir).unwrap()
|
||||
Sysroot::load(sysroot_dir, sysroot_src_dir)
|
||||
}
|
||||
|
||||
fn rooted_project_json(data: ProjectJsonData) -> ProjectJson {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue