https://gcc.gnu.org/g:9767451975381a7d27de47f9d6397df3ecfd09f5

commit r16-4836-g9767451975381a7d27de47f9d6397df3ecfd09f5
Author: Philip Herron <[email protected]>
Date:   Fri Aug 29 17:53:16 2025 +0100

    gccrs: get rid of last can_eq usage finally
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-tyty.cc (ParamType::is_equal): uses 
types_compatable
    
    Signed-off-by: Philip Herron <[email protected]>

Diff:
---
 gcc/rust/typecheck/rust-tyty.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/rust/typecheck/rust-tyty.cc b/gcc/rust/typecheck/rust-tyty.cc
index 411191806aa4..aabae28b3379 100644
--- a/gcc/rust/typecheck/rust-tyty.cc
+++ b/gcc/rust/typecheck/rust-tyty.cc
@@ -3522,7 +3522,9 @@ ParamType::is_equal (const BaseType &other) const
     return false;
 
   if (can_resolve ())
-    return resolve ()->can_eq (other2.resolve (), false);
+    return Resolver::types_compatable (TyTy::TyWithLocation (resolve ()),
+                                      TyTy::TyWithLocation (other2.resolve ()),
+                                      UNKNOWN_LOCATION, false, false);
 
   return get_symbol ().compare (other2.get_symbol ()) == 0;
 }

Reply via email to