diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-02 14:09:46 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-02 14:09:46 +0000 |
commit | fd7240837b5fab6b2854bb63aa3b5c7771b4ddc0 (patch) | |
tree | 88b876a78136413b8fbdf59a524e1bcf12d17f78 /crates/ra_hir/src/code_model_impl/module.rs | |
parent | 30b87eb88073e48b8cde416ca7ff4eb59e408e20 (diff) | |
parent | f0a9d026fcd8bea1944287b1fe7c6573ca62ca9d (diff) |
Merge #915
915: Bring BodySyntaxMapping in line with other source-map instances r=flodiebold a=matklad
* rename to SourceMap
* don't store the actual body inline, just return a pair
r? @flodiebold
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/code_model_impl/module.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index 2d3058afd..437f96942 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -47,7 +47,7 @@ impl Module { | |||
47 | db: &impl HirDatabase, | 47 | db: &impl HirDatabase, |
48 | import: ImportId, | 48 | import: ImportId, |
49 | ) -> TreeArc<ast::PathSegment> { | 49 | ) -> TreeArc<ast::PathSegment> { |
50 | let source_map = db.lower_module_source_map(*self); | 50 | let (_, source_map) = db.lower_module_with_source_map(*self); |
51 | let (_, source) = self.definition_source(db); | 51 | let (_, source) = self.definition_source(db); |
52 | source_map.get(&source, import) | 52 | source_map.get(&source, import) |
53 | } | 53 | } |