Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5a5c7de

Browse files
committedJun 14, 2018
rustc: rename ty::maps to ty::query.
1 parent 7f20af0 commit 5a5c7de

File tree

57 files changed

+247
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+247
-209
lines changed
 

‎src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory contains the source code of the rust project, including:
66
For more information on how various parts of the compiler work, see the [rustc guide].
77

88
Their is also useful content in the following READMEs, which are gradually being moved over to the guide:
9-
- https://github.com/rust-lang/rust/tree/master/src/librustc/ty/maps
9+
- https://github.com/rust-lang/rust/tree/master/src/librustc/ty/query
1010
- https://github.com/rust-lang/rust/tree/master/src/librustc/dep_graph
1111
- https://github.com/rust-lang/rust/blob/master/src/librustc/infer/region_constraints
1212
- https://github.com/rust-lang/rust/tree/master/src/librustc/infer/higher_ranked

‎src/librustc/dep_graph/graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl DepGraph {
656656
// We failed to mark it green, so we try to force the query.
657657
debug!("try_mark_green({:?}) --- trying to force \
658658
dependency {:?}", dep_node, dep_dep_node);
659-
if ::ty::maps::force_from_dep_node(tcx, dep_dep_node) {
659+
if ::ty::query::force_from_dep_node(tcx, dep_dep_node) {
660660
let dep_dep_node_color = data.colors.borrow().get(dep_dep_node_index);
661661

662662
match dep_dep_node_color {
@@ -742,14 +742,14 @@ impl DepGraph {
742742
// and emit other diagnostics before these diagnostics are emitted.
743743
// Such diagnostics should be emitted after these.
744744
// See https://github.com/rust-lang/rust/issues/48685
745-
let diagnostics = tcx.on_disk_query_result_cache
745+
let diagnostics = tcx.queries.on_disk_cache
746746
.load_diagnostics(tcx, prev_dep_node_index);
747747

748748
if diagnostics.len() > 0 {
749749
let handle = tcx.sess.diagnostic();
750750

751751
// Promote the previous diagnostics to the current session.
752-
tcx.on_disk_query_result_cache
752+
tcx.queries.on_disk_cache
753753
.store_diagnostics(dep_node_index, diagnostics.clone());
754754

755755
for diagnostic in diagnostics {

0 commit comments

Comments
 (0)
Please sign in to comment.