diff options
| author | Eric Huss <eric@huss.org> | 2020-11-03 09:54:11 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2020-11-03 09:54:11 -0800 |
| commit | 2172adbd5c42eee3926939f93e557bdb2eb1df95 (patch) | |
| tree | 544011cee1fac4cafd2c499d199b0c0178e29abb | |
| parent | 8e8939b8045b7af6076fb718e2e298844aaf4650 (diff) | |
Fix panic in bootstrap for non-workspace path dependencies.
| -rw-r--r-- | src/bootstrap/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 593d1c4ae88..0878b0ff789 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -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 |
