From: Philip Herron <[email protected]>
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc: remove old hack
Signed-off-by: Philip Herron <[email protected]>
---
gcc/rust/typecheck/rust-hir-type-check-expr.cc | 5 -----
1 file changed, 5 deletions(-)
diff --git a/gcc/rust/typecheck/rust-hir-type-check-expr.cc
b/gcc/rust/typecheck/rust-hir-type-check-expr.cc
index 48145c8df73..4824209aecb 100644
--- a/gcc/rust/typecheck/rust-hir-type-check-expr.cc
+++ b/gcc/rust/typecheck/rust-hir-type-check-expr.cc
@@ -2110,11 +2110,6 @@ TypeCheckExpr::resolve_operator_overload (
lang_item_type, specified_segment, pred, expr);
context->insert_deferred_operator_overload (std::move (defer));
- if (rhs != nullptr)
- lhs = unify_site (expr.get_mappings ().get_hirid (),
- TyTy::TyWithLocation (lhs),
- TyTy::TyWithLocation (rhs), expr.get_locus ());
-
infered = unify_site (expr.get_mappings ().get_hirid (),
TyTy::TyWithLocation (lhs),
TyTy::TyWithLocation (infer), expr.get_locus ());
--
2.50.1