about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-02-06 17:14:38 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2020-02-06 17:14:38 +0100
commita575495accfe46384df0332be6d9c0a3fb151cbe (patch)
treeffbc3bfe6000ec268596aeceb65c069c568bd76d
parentdc4fd3d7240e50e6c4c42952c51db021c88a3575 (diff)
downloadrust-a575495accfe46384df0332be6d9c0a3fb151cbe.tar.gz
rust-a575495accfe46384df0332be6d9c0a3fb151cbe.zip
Make `krate` private
-rw-r--r--src/librustc/hir/map/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs
index 7e0e85ea586..1645420892a 100644
--- a/src/librustc/hir/map/mod.rs
+++ b/src/librustc/hir/map/mod.rs
@@ -138,7 +138,7 @@ pub(super) type HirEntryMap<'hir> = IndexVec<DefIndex, IndexVec<ItemLocalId, Opt
 /// Represents a mapping from `NodeId`s to AST elements and their parent `NodeId`s.
 #[derive(Clone)]
 pub struct Map<'hir> {
-    pub krate: &'hir Crate<'hir>,
+    krate: &'hir Crate<'hir>,
 
     pub dep_graph: DepGraph,