diff options
author | Aleksey Kladov <[email protected]> | 2018-12-09 10:18:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-09 10:18:46 +0000 |
commit | 159525b120121b217f2831869b6ea9a3cf9fe554 (patch) | |
tree | cde35c9e5218afd721a159f46c768641b496dd63 /crates/ra_hir/src/query_definitions.rs | |
parent | 13100da7a2aa97cdbda9ed4bd99896e2ff6d5cf6 (diff) |
Check Fileid in SourceFileMap
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index e4d721601..bb4457d07 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -36,7 +36,7 @@ pub(super) fn fn_scopes(db: &impl HirDatabase, fn_id: FnId) -> Arc<FnScopes> { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | pub(super) fn file_items(db: &impl HirDatabase, file_id: FileId) -> Arc<SourceFileItems> { | 38 | pub(super) fn file_items(db: &impl HirDatabase, file_id: FileId) -> Arc<SourceFileItems> { |
39 | let mut res = SourceFileItems::default(); | 39 | let mut res = SourceFileItems::new(file_id); |
40 | let source_file = db.source_file(file_id); | 40 | let source_file = db.source_file(file_id); |
41 | res.alloc(source_file.syntax().owned()); | 41 | res.alloc(source_file.syntax().owned()); |
42 | let source_file = source_file.borrowed(); | 42 | let source_file = source_file.borrowed(); |