Skip to content

Commit 2172adb

Browse files
committed
Fix panic in bootstrap for non-workspace path dependencies.
1 parent 8e8939b commit 2172adb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,10 @@ impl Build {
11191119
let krate = &self.crates[&krate];
11201120
ret.push(krate);
11211121
for dep in &krate.deps {
1122+
if !self.crates.contains_key(dep) {
1123+
// Ignore non-workspace members.
1124+
continue;
1125+
}
11221126
// Don't include optional deps if their features are not
11231127
// enabled. Ideally this would be computed from `cargo
11241128
// metadata --features …`, but that is somewhat slow. Just

0 commit comments

Comments
 (0)