Auto merge of #5029 - matklad:new-defaults-to-bin, r=withoutboats
authorbors <bors@rust-lang.org>
Tue, 13 Feb 2018 11:03:57 +0000 (11:03 +0000)
committerbors <bors@rust-lang.org>
Tue, 13 Feb 2018 11:03:57 +0000 (11:03 +0000)
commit5891aecf37c6a19893ec1b542079db4b4d5b368e
treee90d73f79933275ade48bd3bc6c4e8f0779d86ab
parent2d42bcf41f044f7fbe827980cadb2acc54921cc2
parent9cb10e68a2f225b5e993043f13da98568a41c50a
Auto merge of #5029 - matklad:new-defaults-to-bin, r=withoutboats

New defaults to bin

So this switches `cargo new` default from `--lib` to `--bin`, as discussed on IRC.

The first two commits are just refactorings, and the last one actually flips the switch. Surprisingly enough, no tests need to be modified it seems!

r? @withoutboats