]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add check bounds flag to unify rules for compatability checks
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 29 Aug 2025 15:36:45 +0000 (16:36 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:56 +0000 (20:58 +0100)
commit1a42fc3b3a604bf058b1f064cdf2b54389ee5b06
treeb0ac1fbd1693d8330c6b18c9037898f55152cc4d
parent9b730dc66d976c498c9beb2e2bf292e1bd488bef
gccrs: Add check bounds flag to unify rules for compatability checks

We need to make the type bounds check a flag because it can turn into a
recursive type bounds check. This allows us to remove another can_eq usage

gcc/rust/ChangeLog:

* typecheck/rust-type-util.cc (types_compatable):  add check bounds flag
(unify_site_and): likewise
* typecheck/rust-type-util.h (types_compatable): likewise
(unify_site_and): likewise
* typecheck/rust-tyty-bounds.cc: likewise
* typecheck/rust-unify.cc (UnifyRules::UnifyRules): likewise
(UnifyRules::Resolve): likewise
(UnifyRules::resolve_subtype): likewise
(UnifyRules::go): likewise
* typecheck/rust-unify.h: likewise

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