rust/src/tools
bors f65d96fe3f Auto merge of #35340 - michaelwoerister:incr-comp-cli-args, r=nikomatsakis
Take commandline arguments into account for incr. comp.

Implements the conservative strategy described in https://github.com/rust-lang/rust/issues/33727.

From now one, every time a new commandline option is added, one has to specify if it influences the incremental compilation cache. I've tried to implement this as automatic as possible: One just has to added either the `[TRACKED]` or the `[UNTRACKED]` marker next to the field. The `Options`, `CodegenOptions`, and `DebuggingOptions` definitions in `session::config` show plenty of examples.

The PR removes some cruft from `session::config::Options`, mostly unnecessary copies of flags also present in `DebuggingOptions` or `CodeGenOptions` in the same struct.

One notable removal is the `cfg` field that contained the values passed via `--cfg` commandline arguments. I chose to remove it because (1) its content is only a subset of what later is stored in `hir::Crate::config` and it's pretty likely that reading the cfgs from `Options` would not be what you wanted, and (2) we could not incorporate it into the dep-tracking hash of the `Options` struct because of how the test framework works, leaving us with a piece of untracked but vital data.

It is now recommended (just as before) to access the crate config via the `krate()` method in the HIR map.

Because the `cfg` field is not present in the `Options` struct any more, some methods in the `CompilerCalls` trait now take the crate config as an explicit parameter -- which might constitute a breaking change for plugin authors.
2016-08-15 08:35:18 -07:00
..
cargotest Update cargo SHA to latest cargo 2016-08-09 10:14:08 -07:00
compiletest Auto merge of #35340 - michaelwoerister:incr-comp-cli-args, r=nikomatsakis 2016-08-15 08:35:18 -07:00
error_index_generator fix alignment 2016-03-22 22:03:54 -05:00
linkchecker Upgrade linkchecker to url 1.2.0. 2016-08-12 23:16:29 -07:00
rustbook std: Stabilize APIs for the 1.11.0 release 2016-07-03 10:49:01 -07:00
tidy Fix make-tidy lock file checks 2016-08-13 22:36:04 +01:00