aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/infer/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/infer/expr.rs')
-rw-r--r--crates/hir_ty/src/infer/expr.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs
index 04fc2f12b..b6b5a1b75 100644
--- a/crates/hir_ty/src/infer/expr.rs
+++ b/crates/hir_ty/src/infer/expr.rs
@@ -15,8 +15,7 @@ use stdx::always;
15use syntax::ast::RangeOp; 15use syntax::ast::RangeOp;
16 16
17use crate::{ 17use crate::{
18 autoderef, 18 autoderef, consteval,
19 consteval::{self, ExprEval},
20 lower::lower_to_chalk_mutability, 19 lower::lower_to_chalk_mutability,
21 mapping::from_chalk, 20 mapping::from_chalk,
22 method_resolution, op, 21 method_resolution, op,
@@ -738,7 +737,7 @@ impl<'a> InferenceContext<'a> {
738 ); 737 );
739 738
740 let repeat_expr = &self.body.exprs[*repeat]; 739 let repeat_expr = &self.body.exprs[*repeat];
741 repeat_expr.eval_usize() 740 consteval::eval_usize(repeat_expr)
742 } 741 }
743 }; 742 };
744 743