aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-27 20:35:53 +0000
committerAleksey Kladov <[email protected]>2018-11-27 20:35:53 +0000
commit93fae0826194b1590013c9bb0d977e60bd135918 (patch)
tree0c3350702dd9d117cc8db4167ccdfc7110b4bad3 /crates/ra_analysis
parentb7049ea543d5ea9a965dfa51d9da923739f2420d (diff)
make module module private
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/src/completion/mod.rs6
-rw-r--r--crates/ra_analysis/src/completion/reference_completion.rs2
-rw-r--r--crates/ra_analysis/src/hir/mod.rs4
-rw-r--r--crates/ra_analysis/src/imp.rs2
-rw-r--r--crates/ra_analysis/src/loc2id.rs3
5 files changed, 8 insertions, 9 deletions
diff --git a/crates/ra_analysis/src/completion/mod.rs b/crates/ra_analysis/src/completion/mod.rs
index 1eb804c85..08fb149af 100644
--- a/crates/ra_analysis/src/completion/mod.rs
+++ b/crates/ra_analysis/src/completion/mod.rs
@@ -11,9 +11,9 @@ use rustc_hash::{FxHashMap};
11 11
12use crate::{ 12use crate::{
13 db::{self, SyntaxDatabase}, 13 db::{self, SyntaxDatabase},
14 hir::{ 14 hir::
15 module::{ModuleDescriptor} 15 ModuleDescriptor
16 }, 16 ,
17 Cancelable, FilePosition 17 Cancelable, FilePosition
18}; 18};
19 19
diff --git a/crates/ra_analysis/src/completion/reference_completion.rs b/crates/ra_analysis/src/completion/reference_completion.rs
index ac6ef1d4a..1bf210685 100644
--- a/crates/ra_analysis/src/completion/reference_completion.rs
+++ b/crates/ra_analysis/src/completion/reference_completion.rs
@@ -11,7 +11,7 @@ use crate::{
11 db::RootDatabase, 11 db::RootDatabase,
12 completion::CompletionItem, 12 completion::CompletionItem,
13 hir::{ 13 hir::{
14 module::{ModuleDescriptor}, 14 ModuleDescriptor,
15 function::FnScopes, 15 function::FnScopes,
16 Def, 16 Def,
17 Path, 17 Path,
diff --git a/crates/ra_analysis/src/hir/mod.rs b/crates/ra_analysis/src/hir/mod.rs
index dc52fa4ef..2035c2d23 100644
--- a/crates/ra_analysis/src/hir/mod.rs
+++ b/crates/ra_analysis/src/hir/mod.rs
@@ -6,7 +6,7 @@
6//! applied. So, there relation between syntax and HIR is many-to-one. 6//! applied. So, there relation between syntax and HIR is many-to-one.
7 7
8pub(crate) mod function; 8pub(crate) mod function;
9pub(crate) mod module; 9mod module;
10pub(crate) mod db; 10pub(crate) mod db;
11mod path; 11mod path;
12mod query_definitions; 12mod query_definitions;
@@ -26,7 +26,7 @@ use crate::{
26 26
27pub(crate) use self::{ 27pub(crate) use self::{
28 path::{Path, PathKind}, 28 path::{Path, PathKind},
29 module::{ModuleDescriptor, nameres::FileItemId}, 29 module::{ModuleDescriptor, ModuleId, Problem, nameres::FileItemId},
30 function::FunctionDescriptor, 30 function::FunctionDescriptor,
31}; 31};
32 32
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index ad4b40c58..1b7e16ff4 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -22,7 +22,7 @@ use crate::{
22 hir::{ 22 hir::{
23 FunctionDescriptor, ModuleDescriptor, 23 FunctionDescriptor, ModuleDescriptor,
24 function::FnDescriptor, 24 function::FnDescriptor,
25 module::{Problem}, 25 Problem,
26 DeclarationDescriptor, 26 DeclarationDescriptor,
27 }, 27 },
28 input::{FilesDatabase, SourceRoot, SourceRootId, WORKSPACE}, 28 input::{FilesDatabase, SourceRoot, SourceRootId, WORKSPACE},
diff --git a/crates/ra_analysis/src/loc2id.rs b/crates/ra_analysis/src/loc2id.rs
index 40da83665..8af7b642b 100644
--- a/crates/ra_analysis/src/loc2id.rs
+++ b/crates/ra_analysis/src/loc2id.rs
@@ -9,8 +9,7 @@ use rustc_hash::FxHashMap;
9 9
10use crate::{ 10use crate::{
11 FileId, 11 FileId,
12 hir::FileItemId, 12 hir::{FileItemId, ModuleId},
13 hir::module::ModuleId,
14 syntax_ptr::SyntaxPtr, 13 syntax_ptr::SyntaxPtr,
15 input::SourceRootId, 14 input::SourceRootId,
16}; 15};