diff options
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/validation.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs index c99c9c869..c8ae19869 100644 --- a/crates/ra_hir/src/expr/validation.rs +++ b/crates/ra_hir/src/expr/validation.rs | |||
@@ -97,7 +97,12 @@ impl<'a, 'b> ExprValidator<'a, 'b> { | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | fn validate_results_in_tail_expr(&mut self, body_id: ExprId, id: ExprId, db: &impl HirDatabase) { | 100 | fn validate_results_in_tail_expr( |
101 | &mut self, | ||
102 | body_id: ExprId, | ||
103 | id: ExprId, | ||
104 | db: &impl HirDatabase, | ||
105 | ) { | ||
101 | // the mismatch will be on the whole block currently | 106 | // the mismatch will be on the whole block currently |
102 | let mismatch = match self.infer.type_mismatch_for_expr(body_id) { | 107 | let mismatch = match self.infer.type_mismatch_for_expr(body_id) { |
103 | Some(m) => m, | 108 | Some(m) => m, |