Auto merge of #5454 - alexcrichton:fix, r=matklad
authorbors <bors@rust-lang.org>
Wed, 2 May 2018 15:35:33 +0000 (15:35 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 May 2018 15:35:33 +0000 (15:35 +0000)
Fix optional dependencies and required dev-deps

This fixes an accidental bug introduced in #5300 by ensuring a local map keeps
track of the fact that there can be multiple dependencies for one name

Closes #5453


Trivial merge