Auto merge of #5204 - lukaslueg:issue5199, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 21 Mar 2018 13:56:00 +0000 (13:56 +0000)
committerbors <bors@rust-lang.org>
Wed, 21 Mar 2018 13:56:00 +0000 (13:56 +0000)
Do not allow crate-type or proc-macro for [[bin]]-targets

Fixes #5199

This simply disallows `proc-macro` and `crate-type` to be set to anything for binary targets. Is this the best way to go or does a warning about the unused setting suffice?

1  2 
tests/testsuite/build.rs

Simple merge