diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 1b369ea11..df42ea84a 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs | |||
@@ -267,7 +267,7 @@ impl ModuleData { | |||
267 | return InFile::new(file_id.into(), Either::A(sf)); | 267 | return InFile::new(file_id.into(), Either::A(sf)); |
268 | } | 268 | } |
269 | let decl = self.declaration.unwrap(); | 269 | let decl = self.declaration.unwrap(); |
270 | InFile::new(decl.file_id(), Either::B(decl.to_node(db))) | 270 | InFile::new(decl.file_id, Either::B(decl.to_node(db))) |
271 | } | 271 | } |
272 | 272 | ||
273 | /// Returns a node which declares this module, either a `mod foo;` or a `mod foo {}`. | 273 | /// Returns a node which declares this module, either a `mod foo;` or a `mod foo {}`. |
@@ -275,7 +275,7 @@ impl ModuleData { | |||
275 | pub fn declaration_source(&self, db: &impl DefDatabase) -> Option<InFile<ast::Module>> { | 275 | pub fn declaration_source(&self, db: &impl DefDatabase) -> Option<InFile<ast::Module>> { |
276 | let decl = self.declaration?; | 276 | let decl = self.declaration?; |
277 | let value = decl.to_node(db); | 277 | let value = decl.to_node(db); |
278 | Some(InFile { file_id: decl.file_id(), value }) | 278 | Some(InFile { file_id: decl.file_id, value }) |
279 | } | 279 | } |
280 | } | 280 | } |
281 | 281 | ||
@@ -309,7 +309,7 @@ mod diagnostics { | |||
309 | } | 309 | } |
310 | let decl = declaration.to_node(db); | 310 | let decl = declaration.to_node(db); |
311 | sink.push(UnresolvedModule { | 311 | sink.push(UnresolvedModule { |
312 | file: declaration.file_id(), | 312 | file: declaration.file_id, |
313 | decl: AstPtr::new(&decl), | 313 | decl: AstPtr::new(&decl), |
314 | candidate: candidate.clone(), | 314 | candidate: candidate.clone(), |
315 | }) | 315 | }) |