Auto merge of #5307 - alexcrichton:another-fix, r=matklad
authorbors <bors@rust-lang.org>
Fri, 6 Apr 2018 19:45:16 +0000 (19:45 +0000)
committerbors <bors@rust-lang.org>
Fri, 6 Apr 2018 19:45:16 +0000 (19:45 +0000)
commite837ce064fcf28d5f739f87376384c18a33c6c69
treec0978f710ca412d5d0dbc0b4821a8127c112bc71
parentd83f1130f36c191763f50ec5373a28e14195f5b5
parentc7a11056e27080875aa013a8b831418515b5e85a
Auto merge of #5307 - alexcrichton:another-fix, r=matklad

Fix another issue of poisoning too eagerly

This commit extends the fix in #5288 by moving the logic added farther up in the
loop over package dependencies. This means that we won't recursively look at
optional/dev path dependencies which aren't members of the workspace. This
should fix the new issue that came up in #5257

Closes #5257