From 0e9d1e17d6e45b44ec1a8f1430109cfc75e41241 Mon Sep 17 00:00:00 2001 From: Roland Ruckerbauer Date: Wed, 14 Oct 2020 19:00:04 +0200 Subject: binary operator overload type inference: add test mark --- crates/hir_ty/src/infer/expr.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/hir_ty/src/infer/expr.rs') diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index 8cc0d56d3..8ac4cf89a 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs @@ -12,6 +12,7 @@ use hir_def::{ }; use hir_expand::name::{name, Name}; use syntax::ast::RangeOp; +use test_utils::mark; use crate::{ autoderef, method_resolution, op, @@ -537,6 +538,8 @@ impl<'a> InferenceContext<'a> { let ret = op::binary_op_return_ty(*op, lhs_ty.clone(), rhs_ty.clone()); if ret == Ty::Unknown { + mark::hit!(infer_expr_inner_binary_operator_overload); + self.resolve_associated_type_with_params( lhs_ty, self.resolve_binary_op_output(op), -- cgit v1.2.3