Skip to content

Commit f47fd77

Browse files
committed
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]>
1 parent af9a6e5 commit f47fd77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcc/rust/typecheck/rust-tyty.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3522,7 +3522,9 @@ ParamType::is_equal (const BaseType &other) const
35223522
return false;
35233523

35243524
if (can_resolve ())
3525-
return resolve ()->can_eq (other2.resolve (), false);
3525+
return Resolver::types_compatable (TyTy::TyWithLocation (resolve ()),
3526+
TyTy::TyWithLocation (other2.resolve ()),
3527+
UNKNOWN_LOCATION, false, false);
35263528

35273529
return get_symbol ().compare (other2.get_symbol ()) == 0;
35283530
}

0 commit comments

Comments
 (0)