Add suggestion for failed path resolution

This adds https://github.com/rust-analyzer/rust-analyzer/issues/3245 as an inline help text for when path resolution fails.
This commit is contained in:
Yoshua Wuyts 2020-02-23 15:51:32 +01:00
parent 838ad6bcfb
commit b4970b0fe9

View File

@ -103,7 +103,7 @@ impl ProjectWorkspace {
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()
)
})?