Auto merge of #5012 - infinity0:pr4988, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 7 Mar 2018 15:39:24 +0000 (15:39 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Mar 2018 15:39:24 +0000 (15:39 +0000)
Don't require dev-dependencies when not needed in certain cases

Specifically, when running `cargo install` and add a flag for this behaviour in `cargo build`.

This closes #4988.

1  2 
src/cargo/core/resolver/mod.rs

Simple merge