From 2172adbd5c42eee3926939f93e557bdb2eb1df95 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 3 Nov 2020 09:54:11 -0800 Subject: [PATCH] Fix panic in bootstrap for non-workspace path dependencies. --- src/bootstrap/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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