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:
@@ -103,7 +103,7 @@ impl ProjectWorkspace {
|
|||||||
let sysroot = if with_sysroot {
|
let sysroot = if with_sysroot {
|
||||||
Sysroot::discover(&cargo_toml).with_context(|| {
|
Sysroot::discover(&cargo_toml).with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"Failed to find sysroot for Cargo.toml file {}",
|
"Failed to find sysroot for Cargo.toml file {}. Is rust-src installed?",
|
||||||
cargo_toml.display()
|
cargo_toml.display()
|
||||||
)
|
)
|
||||||
})?
|
})?
|
||||||
|
|||||||
Reference in New Issue
Block a user