]> git.lizzy.rs Git - rust.git/commit
rustc: Hide the `named_region_map` behind queries
authorAlex Crichton <alex@alexcrichton.com>
Wed, 30 Aug 2017 16:31:14 +0000 (09:31 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 5 Sep 2017 14:37:39 +0000 (07:37 -0700)
commitfd61fa5aef171e27209f1fad6388f730a64d61a2
treecf7bc3dc02e8431fddafe6dc65bcbe0be7c48f51
parent64a70342e67f09b5326538b08990d1b0d2900a5b
rustc: Hide the `named_region_map` behind queries

This commit makes the `named_region_map` field of `GlobalCtxt` private by
encapsulating the fields behind new queries, and the new queries are also
targeted at particular `HirId` nodes instead of accessing the entire map.
src/librustc/dep_graph/dep_node.rs
src/librustc/infer/error_reporting/anon_anon_conflict.rs
src/librustc/ty/context.rs
src/librustc/ty/maps.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/collect.rs
src/librustdoc/clean/mod.rs