mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
fix: Fix project discovery not checking whether the Cargo.toml
actually exists
This commit is contained in:
parent
6fce1d71df
commit
c7f02012b1
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ impl ProjectManifest {
|
|||
entities
|
||||
.filter_map(Result::ok)
|
||||
.map(|it| it.path().join("Cargo.toml"))
|
||||
.filter(|it| it.exists())
|
||||
.map(AbsPathBuf::try_from)
|
||||
.filter_map(|it| it.ok()?.try_into().ok())
|
||||
.collect()
|
||||
|
|
Loading…
Reference in a new issue