diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-06 23:21:49 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-06 23:21:49 +0000 |
commit | 07a54f7ae451451292e3282f1e7defb4391b766f (patch) | |
tree | 296a5f2b2aff6f74eb3cc5db851d59bea5cc3889 /crates/hir_def/src/child_by_source.rs | |
parent | c44575b4857e2d97067afab7df1f98042aa591c4 (diff) | |
parent | 6750c11df33868ffac07af4c8d4b050331663f5e (diff) |
Merge #7899
7899: Rename a few `crate_def_map`s to `def_map` r=jonas-schievink a=jonas-schievink
These could all be block `DefMap`s instead of crate-level `DefMap`s
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src/child_by_source.rs')
-rw-r--r-- | crates/hir_def/src/child_by_source.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/child_by_source.rs b/crates/hir_def/src/child_by_source.rs index 65d85c86a..75c2d756b 100644 --- a/crates/hir_def/src/child_by_source.rs +++ b/crates/hir_def/src/child_by_source.rs | |||
@@ -74,8 +74,8 @@ impl ChildBySource for ImplId { | |||
74 | 74 | ||
75 | impl ChildBySource for ModuleId { | 75 | impl ChildBySource for ModuleId { |
76 | fn child_by_source(&self, db: &dyn DefDatabase) -> DynMap { | 76 | fn child_by_source(&self, db: &dyn DefDatabase) -> DynMap { |
77 | let crate_def_map = self.def_map(db); | 77 | let def_map = self.def_map(db); |
78 | let module_data = &crate_def_map[self.local_id]; | 78 | let module_data = &def_map[self.local_id]; |
79 | module_data.scope.child_by_source(db) | 79 | module_data.scope.child_by_source(db) |
80 | } | 80 | } |
81 | } | 81 | } |