mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
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:
parent
838ad6bcfb
commit
b4970b0fe9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
)
|
)
|
||||||
})?
|
})?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue