mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Fix panic in bootstrap for non-workspace path dependencies.
This commit is contained in:
parent
8e8939b804
commit
2172adbd5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user