]> git.lizzy.rs Git - rust.git/commit
rustc: Flag some CrateStore methods as "untracked"
authorAlex Crichton <alex@alexcrichton.com>
Thu, 31 Aug 2017 15:07:39 +0000 (08:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 5 Sep 2017 14:37:39 +0000 (07:37 -0700)
commit43ae38019167ef02e53cfc202df8b6be0f79c32d
treedf5a04c15b5911e2f71c2318946cb5e19ded157b
parentfd61fa5aef171e27209f1fad6388f730a64d61a2
rustc: Flag some CrateStore methods as "untracked"

The main use of `CrateStore` *before* the `TyCtxt` is created is during
resolution, but we want to be sure that any methods used before resolution are
not used after the `TyCtxt` is created. This commit starts moving the methods
used by resolve to all be named `{name}_untracked` where the rest of the
compiler uses just `{name}` as a query.

During this transition a number of new queries were added to account for
post-resolve usage of these methods.
27 files changed:
src/librustc/dep_graph/dep_node.rs
src/librustc/infer/error_reporting/mod.rs
src/librustc/middle/cstore.rs
src/librustc/middle/dependency_format.rs
src/librustc/middle/lang_items.rs
src/librustc/middle/stability.rs
src/librustc/ty/context.rs
src/librustc/ty/maps.rs
src/librustc/ty/mod.rs
src/librustc_lint/builtin.rs
src/librustc_metadata/cstore_impl.rs
src/librustc_metadata/encoder.rs
src/librustc_privacy/lib.rs
src/librustc_resolve/build_reduced_graph.rs
src/librustc_resolve/macros.rs
src/librustc_resolve/resolve_imports.rs
src/librustc_save_analysis/lib.rs
src/librustc_trans/back/link.rs
src/librustc_trans/back/write.rs
src/librustc_trans/base.rs
src/librustc_trans/lib.rs
src/librustc_typeck/check/method/suggest.rs
src/librustc_typeck/check_unused.rs
src/librustdoc/clean/inline.rs
src/librustdoc/clean/mod.rs
src/librustdoc/visit_ast.rs
src/librustdoc/visit_lib.rs