diff options
author | Aleksey Kladov <[email protected]> | 2019-11-27 12:56:20 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-27 12:56:20 +0000 |
commit | d569869f7a8c7a4c23b14fadbef63d4dbc949bcd (patch) | |
tree | d29a985e08ec7ac000d968d0b94545415e997937 /crates/ra_hir/src/code_model.rs | |
parent | 35f57f35ec484422f06772ebe109c8fd28966ec5 (diff) |
Decouple more
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 54da937ea..6d71bde92 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -647,7 +647,7 @@ impl Function { | |||
647 | 647 | ||
648 | pub fn diagnostics(self, db: &impl HirDatabase, sink: &mut DiagnosticSink) { | 648 | pub fn diagnostics(self, db: &impl HirDatabase, sink: &mut DiagnosticSink) { |
649 | let infer = self.infer(db); | 649 | let infer = self.infer(db); |
650 | infer.add_diagnostics(db, self, sink); | 650 | infer.add_diagnostics(db, self.id, sink); |
651 | let mut validator = ExprValidator::new(self, infer, sink); | 651 | let mut validator = ExprValidator::new(self, infer, sink); |
652 | validator.validate_body(db); | 652 | validator.validate_body(db); |
653 | } | 653 | } |