diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-09 10:26:22 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-09 10:26:22 +0000 |
commit | 5ced6f4be31576849f37e15c150f3ca3eea37b4d (patch) | |
tree | 199eb0275e4d8309dcb9bf32f26d8629de4882d0 /crates/ra_project_model | |
parent | 2ffaad10f24ad9d3d748a347e02f170f24833ec3 (diff) | |
parent | 4223760a7ba5879e11dcf93db0884367c07244d7 (diff) |
Merge #2777
2777: Better error message r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r-- | crates/ra_project_model/src/sysroot.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs index 10ca391b6..34d066b1e 100644 --- a/crates/ra_project_model/src/sysroot.rs +++ b/crates/ra_project_model/src/sysroot.rs | |||
@@ -53,9 +53,10 @@ impl Sysroot { | |||
53 | if !src.exists() { | 53 | if !src.exists() { |
54 | Err(format!( | 54 | Err(format!( |
55 | "can't load standard library from sysroot\n\ | 55 | "can't load standard library from sysroot\n\ |
56 | {:?}\n\ | 56 | {}\n\ |
57 | (discovered via `rustc --print sysroot`)\n\ | ||
57 | try running `rustup component add rust-src` or set `RUST_SRC_PATH`", | 58 | try running `rustup component add rust-src` or set `RUST_SRC_PATH`", |
58 | src, | 59 | src.display(), |
59 | ))?; | 60 | ))?; |
60 | } | 61 | } |
61 | 62 | ||