[COMMITTED 47/83] gccrs: Remove bad unify in operator overload breaking partial eq in core
arthur.cohen@opensrcsec.com
arthur.cohen@opensrcsec.com
Wed Sep 16 12:30:06 GMT 2026
From: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc: remove old hack
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
---
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
More information about the Gcc-rust
mailing list