Auto merge of #4817 - alexcrichton:incremental-by-default, r=matklad
authorbors <bors@rust-lang.org>
Thu, 21 Dec 2017 18:57:07 +0000 (18:57 +0000)
committerbors <bors@rust-lang.org>
Thu, 21 Dec 2017 18:57:07 +0000 (18:57 +0000)
Enable incremental by default

This commit enables incremental compilation by default in Cargo for all
dev-related profiles (aka anything without `--release` or `bench`. A
number of new configuration options were also added to tweak how
incremental compilation is exposed and/or used:

* A `profile.dev.incremental` field is added to `Cargo.toml` to disable
  it on a per-project basis (in case of bugs).
* A `build.incremental` field was added in `.cargo/config` to disable
  globally (or enable if we flip this default back off).

Otherwise `CARGO_INCREMENTAL` can still be used to configure one
particular compilation. The global `build.incremental` configuration
cannot currently be used to enable it for the release profile.


Trivial merge