]> git.lizzy.rs Git - rust.git/commitdiff
Add suggestion for failed path resolution
authorYoshua Wuyts <yoshuawuyts@gmail.com>
Sun, 23 Feb 2020 14:51:32 +0000 (15:51 +0100)
committerYoshua Wuyts <yoshuawuyts@gmail.com>
Sun, 23 Feb 2020 14:51:32 +0000 (15:51 +0100)
This adds https://github.com/rust-analyzer/rust-analyzer/issues/3245 as an inline help text for when path resolution fails.

crates/ra_project_model/src/lib.rs

index e35f7fbbcbe00566442e064bd99214e394e4586d..9df6a0e070e2eef988d42630d80aff381713c4ad 100644 (file)
@@ -103,7 +103,7 @@ pub fn discover_with_sysroot(
                 let sysroot = if with_sysroot {
                     Sysroot::discover(&cargo_toml).with_context(|| {
                         format!(
-                            "Failed to find sysroot for Cargo.toml file {}",
+                            "Failed to find sysroot for Cargo.toml file {}. Is rust-src installed?",
                             cargo_toml.display()
                         )
                     })?