]> git.lizzy.rs Git - rust.git/commit
rustc: Move a few more cstore methods to queries
authorAlex Crichton <alex@alexcrichton.com>
Mon, 28 Aug 2017 22:55:32 +0000 (15:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 5 Sep 2017 14:37:11 +0000 (07:37 -0700)
commitdff0c074e467a1fbbeab44ffbd8da4882683b694
tree08c1104e31ab1dde70b97eb6eaedd7f97dc3bfa1
parent2f1ef9ef1181298d46e79d5dde6bafeb6483926f
rustc: Move a few more cstore methods to queries

This comit applies the following changes:

* Deletes the `is_allocator` query as it's no longer used
* Moves the `is_sanitizer_runtime` method to a query
* Moves the `is_profiler_runtime` method to a query
* Moves the `panic_strategy` method to a query
* Moves the `is_no_builtins` method to a query
* Deletes the cstore method of `is_compiler_builtins`. The query was added in
  #42588 but the `CrateStore` method was not deleted

A good bit of these methods were used late in linking during trans so a new
dedicated structure was created to ship a calculated form of this information
over to the linker rather than having to ship the whole of `TyCtxt` over to
linking.
src/librustc/dep_graph/dep_node.rs
src/librustc/middle/cstore.rs
src/librustc/middle/dependency_format.rs
src/librustc/ty/maps.rs
src/librustc_metadata/cstore_impl.rs
src/librustc_trans/back/link.rs
src/librustc_trans/back/symbol_export.rs
src/librustc_trans/back/write.rs
src/librustc_trans/base.rs
src/librustc_trans/lib.rs
src/librustc_typeck/check_unused.rs