diff options
author | Aleksey Kladov <[email protected]> | 2019-04-02 11:26:09 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-02 11:26:09 +0100 |
commit | 49f13d3a9bb5bf3ab92c3fbf23ad79cb001b76e0 (patch) | |
tree | 55a59317e363ba5aa419366643502ce3656e1bb2 /crates/ra_hir/src/code_model_impl | |
parent | ab19ff16e55d4d64445fc2809e52d913ad492040 (diff) |
fix a panic with glob-import missing a source map
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-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 0edb8ade5..ccca2b7e5 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -72,7 +72,7 @@ impl Module { | |||
72 | &self, | 72 | &self, |
73 | db: &impl HirDatabase, | 73 | db: &impl HirDatabase, |
74 | import: ImportId, | 74 | import: ImportId, |
75 | ) -> TreeArc<ast::PathSegment> { | 75 | ) -> TreeArc<ast::UseTree> { |
76 | let (file_id, source) = self.definition_source(db); | 76 | let (file_id, source) = self.definition_source(db); |
77 | let (_, source_map) = db.raw_items_with_source_map(file_id); | 77 | let (_, source_map) = db.raw_items_with_source_map(file_id); |
78 | source_map.get(&source, import) | 78 | source_map.get(&source, import) |