aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/code_model.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 07c56843a..2442fb6a5 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -12,7 +12,7 @@ use hir_def::{
12 nameres::per_ns::PerNs, 12 nameres::per_ns::PerNs,
13 resolver::{HasResolver, TypeNs}, 13 resolver::{HasResolver, TypeNs},
14 type_ref::TypeRef, 14 type_ref::TypeRef,
15 ContainerId, CrateModuleId, HasModule, ImplId, LocalEnumVariantId, LocalImportId, 15 ContainerId, HasModule, ImplId, LocalEnumVariantId, LocalImportId, LocalModuleId,
16 LocalStructFieldId, Lookup, ModuleId, UnionId, 16 LocalStructFieldId, Lookup, ModuleId, UnionId,
17}; 17};
18use hir_expand::{ 18use hir_expand::{
@@ -112,7 +112,7 @@ impl_froms!(
112pub use hir_def::{attr::Attrs, ModuleSource}; 112pub use hir_def::{attr::Attrs, ModuleSource};
113 113
114impl Module { 114impl Module {
115 pub(crate) fn new(krate: Crate, crate_module_id: CrateModuleId) -> Module { 115 pub(crate) fn new(krate: Crate, crate_module_id: LocalModuleId) -> Module {
116 Module { id: ModuleId { krate: krate.crate_id, module_id: crate_module_id } } 116 Module { id: ModuleId { krate: krate.crate_id, module_id: crate_module_id } }
117 } 117 }
118 118
@@ -222,7 +222,7 @@ impl Module {
222 def_map[self.id.module_id].impls.iter().copied().map(ImplBlock::from).collect() 222 def_map[self.id.module_id].impls.iter().copied().map(ImplBlock::from).collect()
223 } 223 }
224 224
225 fn with_module_id(self, module_id: CrateModuleId) -> Module { 225 fn with_module_id(self, module_id: LocalModuleId) -> Module {
226 Module::new(self.krate(), module_id) 226 Module::new(self.krate(), module_id)
227 } 227 }
228} 228}