Skip to content

Commit

Permalink
Auto merge of #17836 - winstxnhdw:sysroot, r=Veykril
Browse files Browse the repository at this point in the history
minor: log error when sysroot can't be discovered

Closes #17808
  • Loading branch information
bors committed Aug 9, 2024
2 parents dab022f + c2ee843 commit 56f63df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/project-model/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,13 @@ fn discover_sysroot_src_dir_or_add_component(
get_rust_src(sysroot_path)
})
.ok_or_else(|| {
format_err!(
"\
let error = "\
can't load standard library from sysroot
{sysroot_path}
(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)
})
}

Expand Down

0 comments on commit 56f63df

Please sign in to comment.