Skip to content

Commit

Permalink
Fix panic in bootstrap for non-workspace path dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 3, 2020
1 parent 8e8939b commit 2172adb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,10 @@ impl Build {
let krate = &self.crates[&krate];
ret.push(krate);
for dep in &krate.deps {
if !self.crates.contains_key(dep) {
// Ignore non-workspace members.
continue;
}
// Don't include optional deps if their features are not
// enabled. Ideally this would be computed from `cargo
// metadata --features …`, but that is somewhat slow. Just
Expand Down

0 comments on commit 2172adb

Please sign in to comment.