]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: respect the unify rules commit flag
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 25 Aug 2025 12:30:22 +0000 (13:30 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:55 +0000 (20:58 +0100)
commit2df042c661f66171fc9432ef992ce6cf6de7c022
treea7beaf5c0fc70f243d13c95ea21c70b216359cd5
parent98898970c0e1992e1f4eb4a7e0c267c6a598b995
gccrs: respect the unify rules commit flag

We use the types compatable interface for unify here and so if
we dont respect the commit flag the interface can have unintended
side effects with infer type hints throwing things off down the line.

gcc/rust/ChangeLog:

* typecheck/rust-unify.cc (UnifyRules::expect_inference_variable): dont commit
(UnifyRules::expect_adt): likewise
(UnifyRules::expect_bool): likewise
(UnifyRules::expect_char): likewise
(UnifyRules::expect_int): likewise
(UnifyRules::expect_uint): likewise
(UnifyRules::expect_float): likewise
(UnifyRules::expect_isize): likewise
(UnifyRules::expect_usize): likewise

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