diff options
Diffstat (limited to 'crates/ra_hir_def/src/lib.rs')
-rw-r--r-- | crates/ra_hir_def/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/lib.rs b/crates/ra_hir_def/src/lib.rs index 9d89692bf..6daf7d3a3 100644 --- a/crates/ra_hir_def/src/lib.rs +++ b/crates/ra_hir_def/src/lib.rs | |||
@@ -108,7 +108,7 @@ pub trait AstItemDef<N: AstNode>: salsa::InternKey + Clone { | |||
108 | fn source(self, db: &(impl AstDatabase + InternDatabase)) -> InFile<N> { | 108 | fn source(self, db: &(impl AstDatabase + InternDatabase)) -> InFile<N> { |
109 | let loc = self.lookup_intern(db); | 109 | let loc = self.lookup_intern(db); |
110 | let value = loc.ast_id.to_node(db); | 110 | let value = loc.ast_id.to_node(db); |
111 | InFile { file_id: loc.ast_id.file_id(), value } | 111 | InFile { file_id: loc.ast_id.file_id, value } |
112 | } | 112 | } |
113 | fn module(self, db: &impl InternDatabase) -> ModuleId { | 113 | fn module(self, db: &impl InternDatabase) -> ModuleId { |
114 | let loc = self.lookup_intern(db); | 114 | let loc = self.lookup_intern(db); |
@@ -525,7 +525,7 @@ impl HasSource for FunctionLoc { | |||
525 | 525 | ||
526 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::FnDef> { | 526 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::FnDef> { |
527 | let node = self.ast_id.to_node(db); | 527 | let node = self.ast_id.to_node(db); |
528 | InFile::new(self.ast_id.file_id(), node) | 528 | InFile::new(self.ast_id.file_id, node) |
529 | } | 529 | } |
530 | } | 530 | } |
531 | 531 | ||
@@ -534,7 +534,7 @@ impl HasSource for TypeAliasLoc { | |||
534 | 534 | ||
535 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::TypeAliasDef> { | 535 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::TypeAliasDef> { |
536 | let node = self.ast_id.to_node(db); | 536 | let node = self.ast_id.to_node(db); |
537 | InFile::new(self.ast_id.file_id(), node) | 537 | InFile::new(self.ast_id.file_id, node) |
538 | } | 538 | } |
539 | } | 539 | } |
540 | 540 | ||
@@ -543,7 +543,7 @@ impl HasSource for ConstLoc { | |||
543 | 543 | ||
544 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::ConstDef> { | 544 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::ConstDef> { |
545 | let node = self.ast_id.to_node(db); | 545 | let node = self.ast_id.to_node(db); |
546 | InFile::new(self.ast_id.file_id(), node) | 546 | InFile::new(self.ast_id.file_id, node) |
547 | } | 547 | } |
548 | } | 548 | } |
549 | 549 | ||
@@ -552,7 +552,7 @@ impl HasSource for StaticLoc { | |||
552 | 552 | ||
553 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::StaticDef> { | 553 | fn source(&self, db: &impl db::DefDatabase) -> InFile<ast::StaticDef> { |
554 | let node = self.ast_id.to_node(db); | 554 | let node = self.ast_id.to_node(db); |
555 | InFile::new(self.ast_id.file_id(), node) | 555 | InFile::new(self.ast_id.file_id, node) |
556 | } | 556 | } |
557 | } | 557 | } |
558 | 558 | ||