diff options
Diffstat (limited to 'crates/ra_hir/src/module')
-rw-r--r-- | crates/ra_hir/src/module/nameres.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs index 46b1dc0b1..94ada73d7 100644 --- a/crates/ra_hir/src/module/nameres.rs +++ b/crates/ra_hir/src/module/nameres.rs | |||
@@ -98,7 +98,7 @@ pub struct NamedImport { | |||
98 | impl NamedImport { | 98 | impl NamedImport { |
99 | pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange { | 99 | pub fn range(&self, db: &impl HirDatabase, file_id: FileId) -> TextRange { |
100 | let source_item_id = SourceItemId { | 100 | let source_item_id = SourceItemId { |
101 | file_id, | 101 | mfile_id: file_id.into(), |
102 | item_id: Some(self.file_item_id), | 102 | item_id: Some(self.file_item_id), |
103 | }; | 103 | }; |
104 | let syntax = db.file_item(source_item_id); | 104 | let syntax = db.file_item(source_item_id); |
@@ -360,7 +360,7 @@ where | |||
360 | source_root_id: self.source_root, | 360 | source_root_id: self.source_root, |
361 | module_id, | 361 | module_id, |
362 | source_item_id: SourceItemId { | 362 | source_item_id: SourceItemId { |
363 | file_id, | 363 | mfile_id: file_id.into(), |
364 | item_id: Some(item.id), | 364 | item_id: Some(item.id), |
365 | }, | 365 | }, |
366 | }; | 366 | }; |
@@ -376,7 +376,7 @@ where | |||
376 | source_root_id: self.source_root, | 376 | source_root_id: self.source_root, |
377 | module_id, | 377 | module_id, |
378 | source_item_id: SourceItemId { | 378 | source_item_id: SourceItemId { |
379 | file_id, | 379 | mfile_id: file_id.into(), |
380 | item_id: Some(item.id), | 380 | item_id: Some(item.id), |
381 | }, | 381 | }, |
382 | }; | 382 | }; |