]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: allow unifications against non const types
authorPhilip Herron <herron.philip@googlemail.com>
Sun, 3 Aug 2025 18:53:23 +0000 (19:53 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:59:04 +0000 (20:59 +0100)
commitf8aaded3180c2f8ae413763169aa20dfa635993c
tree2e208a32960999d1c54b5e81caaa7a470883527a
parent73512d1d01258277e383092e59e7b52447f512fc
gccrs: allow unifications against non const types

When type resolving a function which returns a const generic for example
this means its unifying the ConstType vs the the specified type so this
mean unwrapping the type of the const.

gcc/rust/ChangeLog:

* typecheck/rust-unify.cc (UnifyRules::go): unwrap the const type

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