diff options
Diffstat (limited to 'crates/ra_analysis/src/hir/mod.rs')
-rw-r--r-- | crates/ra_analysis/src/hir/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/hir/mod.rs b/crates/ra_analysis/src/hir/mod.rs index e234173a9..1de8fadcf 100644 --- a/crates/ra_analysis/src/hir/mod.rs +++ b/crates/ra_analysis/src/hir/mod.rs | |||
@@ -19,14 +19,14 @@ use crate::{ | |||
19 | 19 | ||
20 | pub(crate) use self::{ | 20 | pub(crate) use self::{ |
21 | path::{Path, PathKind}, | 21 | path::{Path, PathKind}, |
22 | module::{ModuleDescriptor, ModuleId, Problem, nameres::FileItemId}, | 22 | module::{Module, ModuleId, Problem, nameres::FileItemId}, |
23 | function::{FunctionDescriptor, FnScopes}, | 23 | function::{FunctionDescriptor, FnScopes}, |
24 | }; | 24 | }; |
25 | 25 | ||
26 | pub use self::function::FnSignatureInfo; | 26 | pub use self::function::FnSignatureInfo; |
27 | 27 | ||
28 | pub(crate) enum Def { | 28 | pub(crate) enum Def { |
29 | Module(ModuleDescriptor), | 29 | Module(Module), |
30 | Item, | 30 | Item, |
31 | } | 31 | } |
32 | 32 | ||
@@ -35,7 +35,7 @@ impl DefId { | |||
35 | let loc = db.id_maps().def_loc(self); | 35 | let loc = db.id_maps().def_loc(self); |
36 | let res = match loc { | 36 | let res = match loc { |
37 | DefLoc::Module { id, source_root } => { | 37 | DefLoc::Module { id, source_root } => { |
38 | let descr = ModuleDescriptor::new(db, source_root, id)?; | 38 | let descr = Module::new(db, source_root, id)?; |
39 | Def::Module(descr) | 39 | Def::Module(descr) |
40 | } | 40 | } |
41 | DefLoc::Item { .. } => Def::Item, | 41 | DefLoc::Item { .. } => Def::Item, |