Skip to content

Commit 5ced6f4

Browse files
bors[bot]matklad
andauthored
Merge #2777
2777: Better error message r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 2ffaad1 + 4223760 commit 5ced6f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ra_project_model/src/sysroot.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ impl Sysroot {
5353
if !src.exists() {
5454
Err(format!(
5555
"can't load standard library from sysroot\n\
56-
{:?}\n\
56+
{}\n\
57+
(discovered via `rustc --print sysroot`)\n\
5758
try running `rustup component add rust-src` or set `RUST_SRC_PATH`",
58-
src,
59+
src.display(),
5960
))?;
6061
}
6162

0 commit comments

Comments
 (0)