diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index 57fd1ed2a..53b7b5836 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -1143,7 +1143,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
1143 | ret_ty | 1143 | ret_ty |
1144 | } | 1144 | } |
1145 | Expr::Match { expr, arms } => { | 1145 | Expr::Match { expr, arms } => { |
1146 | let mut expected = Expectation::none(); | 1146 | let mut expected = expected.clone(); |
1147 | let input_ty = self.infer_expr(*expr, &Expectation::none()); | 1147 | let input_ty = self.infer_expr(*expr, &Expectation::none()); |
1148 | let pat_expectation = Expectation::has_type(input_ty); | 1148 | let pat_expectation = Expectation::has_type(input_ty); |
1149 | 1149 | ||