]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: get rid of last can_eq usage finally
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 29 Aug 2025 16:53:16 +0000 (17:53 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:59:00 +0000 (20:59 +0100)
gcc/rust/ChangeLog:

* typecheck/rust-tyty.cc (ParamType::is_equal): uses types_compatable

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-tyty.cc

index 411191806aa4a8568d5fd931bebf51d4dd01462e..aabae28b3379d10a753a32501d41d3fd38b6186f 100644 (file)
@@ -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;
 }