mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
binary operator overload type inference: add test mark
This commit is contained in:
parent
4e49b2f731
commit
0e9d1e17d6
2 changed files with 6 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue