Auto merge of #5186 - infinity0:stricter-need-dev-deps, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 21 Mar 2018 14:19:11 +0000 (14:19 +0000)
committerbors <bors@rust-lang.org>
Wed, 21 Mar 2018 14:19:11 +0000 (14:19 +0000)
commitb0a225206352c3930f62c3674243d99fc8b15b07
tree802fa02fb6f07930073066da8cb2ae6d39d5671e
parent4dde7264b5c7308114499b2f166bcef6a33a9d97
parent0bc115575336d20d99bc9d0b56baab1ce286043d
Auto merge of #5186 - infinity0:stricter-need-dev-deps, r=alexcrichton

Stricter need_dev_deps behaviour

The previous PR (#5012) contained an unnecessary work-around for behaviour of `--all-targets` that was misunderstood. This PR removes that work-around and adds some tests and comments to clarify the behaviour for future contributors, which may help to make easier a future fix for #5177 and #5178.
src/bin/commands/rustc.rs
src/bin/commands/rustdoc.rs
tests/testsuite/build.rs
tests/testsuite/rustc.rs