Auto merge of #5358 - djc:options-build-config, r=matklad
authorbors <bors@rust-lang.org>
Sat, 5 May 2018 18:35:04 +0000 (18:35 +0000)
committerbors <bors@rust-lang.org>
Sat, 5 May 2018 18:35:04 +0000 (18:35 +0000)
Let CompileOptions create a BuildConfig directly

This puts input validation in a more central place and prevents copying/moving stuff around as separate values.

1  2 
src/cargo/core/compiler/context/mod.rs