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]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/3fc990f97c8abf7b224e6dfad76a8e786d174358

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4845

 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 48145c8df..4824209ae 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 ());

base-commit: f3d78219fefeb918ca3f11e56e77c3deff119cb8
-- 
2.55.0

Reply via email to