diff options
author | Aleksey Kladov <[email protected]> | 2019-03-14 10:14:54 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-17 09:52:52 +0000 |
commit | b2a6c1736295a5fffa5ac0d0fee835cdc719ada3 (patch) | |
tree | 56fd27197126f11011fe9030cd9bfb80e142e709 /crates/ra_hir/src/code_model_impl | |
parent | c7259a899c1709753dcda0fb117e2f7cc30a4d6e (diff) |
remove lower module
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 5d8f738b5..aa4e62518 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -76,8 +76,8 @@ impl Module { | |||
76 | db: &impl HirDatabase, | 76 | db: &impl HirDatabase, |
77 | import: ImportId, | 77 | import: ImportId, |
78 | ) -> TreeArc<ast::PathSegment> { | 78 | ) -> TreeArc<ast::PathSegment> { |
79 | let (_, source_map) = db.lower_module_with_source_map(*self); | 79 | let (file_id, source) = self.definition_source(db); |
80 | let (_, source) = self.definition_source(db); | 80 | let (_, source_map) = db.raw_items_with_source_map(file_id.original_file(db)); |
81 | source_map.get(&source, import) | 81 | source_map.get(&source, import) |
82 | } | 82 | } |
83 | 83 | ||