diff options
author | Aleksey Kladov <[email protected]> | 2019-11-23 13:49:53 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-23 14:12:49 +0000 |
commit | 158b1cb524d8e07aa7a6ec2342bca2ce4667d316 (patch) | |
tree | aec1b3e9ad54155e386db9cf5d2af8b8697e80aa /crates/ra_hir/src | |
parent | dd5c2dc5bf9e9dee863bd79105b1782b654221f7 (diff) |
Rename CrateModuleId
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 6 |
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 | }; |
18 | use hir_expand::{ | 18 | use hir_expand::{ |
@@ -112,7 +112,7 @@ impl_froms!( | |||
112 | pub use hir_def::{attr::Attrs, ModuleSource}; | 112 | pub use hir_def::{attr::Attrs, ModuleSource}; |
113 | 113 | ||
114 | impl Module { | 114 | impl 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 | } |