Auto merge of #5480 - alexcrichton:fix-regr, r=matklad
authorbors <bors@rust-lang.org>
Fri, 4 May 2018 21:07:15 +0000 (21:07 +0000)
committerbors <bors@rust-lang.org>
Fri, 4 May 2018 21:07:15 +0000 (21:07 +0000)
Fix optional deps in multiple sections

This commit fixes an issue where an optional dependency was listed multiple
times in a manifest (multiple sections). This regression was introduced by #5415
and happened because in the resolver we didn't record a `Dependency` as it was
accidentally deduplicated too soon.

The fix here was to ensure that all `Dependency` annotations make their way into
`Resolve` now that we rely on the listed `Dependency` values for correctness.

Closes #5475

1  2 
tests/testsuite/build_script.rs

Simple merge