mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +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
|
entities
|
||||||
.filter_map(Result::ok)
|
.filter_map(Result::ok)
|
||||||
.map(|it| it.path().join("Cargo.toml"))
|
.map(|it| it.path().join("Cargo.toml"))
|
||||||
|
.filter(|it| it.exists())
|
||||||
.map(AbsPathBuf::try_from)
|
.map(AbsPathBuf::try_from)
|
||||||
.filter_map(|it| it.ok()?.try_into().ok())
|
.filter_map(|it| it.ok()?.try_into().ok())
|
||||||
.collect()
|
.collect()
|
||||||
|
|
Loading…
Reference in a new issue