Skip to content

Commit 5e276ae

Browse files
committed
Auto merge of #16899 - Veykril:discover-fix, r=Veykril
fix: Fix project discovery not checking whether the `Cargo.toml` actually exists Got dropped in #16889, somehow r-a's codebase itself doesn't even run into this so I didn't see it when testing ...
2 parents 6fce1d7 + c7f0201 commit 5e276ae

File tree

1 file changed

+1
-0
lines changed
  • crates/project-model/src

1 file changed

+1
-0
lines changed

crates/project-model/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ impl ProjectManifest {
126126
entities
127127
.filter_map(Result::ok)
128128
.map(|it| it.path().join("Cargo.toml"))
129+
.filter(|it| it.exists())
129130
.map(AbsPathBuf::try_from)
130131
.filter_map(|it| it.ok()?.try_into().ok())
131132
.collect()

0 commit comments

Comments
 (0)