File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use hir_def::{
12
12
} ;
13
13
use hir_expand:: name:: { name, Name } ;
14
14
use syntax:: ast:: RangeOp ;
15
+ use test_utils:: mark;
15
16
16
17
use crate :: {
17
18
autoderef, method_resolution, op,
@@ -537,6 +538,8 @@ impl<'a> InferenceContext<'a> {
537
538
let ret = op:: binary_op_return_ty ( * op, lhs_ty. clone ( ) , rhs_ty. clone ( ) ) ;
538
539
539
540
if ret == Ty :: Unknown {
541
+ mark:: hit!( infer_expr_inner_binary_operator_overload) ;
542
+
540
543
self . resolve_associated_type_with_params (
541
544
lhs_ty,
542
545
self . resolve_binary_op_output ( op) ,
Original file line number Diff line number Diff line change 1
1
use expect_test:: expect;
2
+ use test_utils:: mark;
2
3
3
4
use super :: { check_infer, check_types} ;
4
5
@@ -2228,6 +2229,8 @@ fn generic_default_depending_on_other_type_arg_forward() {
2228
2229
2229
2230
#[ test]
2230
2231
fn infer_operator_overload ( ) {
2232
+ mark:: check!( infer_expr_inner_binary_operator_overload) ;
2233
+
2231
2234
check_infer (
2232
2235
r#"
2233
2236
struct V2([f32; 2]);
You can’t perform that action at this time.
0 commit comments