Skip to content

Commit 4223760

Browse files
committed
Better error message
closes #2775
1 parent 928ecd0 commit 4223760

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)