]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Make the coerce borrowed pointer consistent with try flag
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 25 Aug 2025 19:44:16 +0000 (20:44 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:53 +0000 (20:58 +0100)
commit393153d9eff541d7d52d3fe99b8ac41cd78f89b1
treed2a698726bf684550de4fa77e7f0bb3807cdb7f5
parent229ab5da69292f14f052e7da7b2d83003369197c
gccrs: Make the coerce borrowed pointer consistent with try flag

This interface is not respecting the coercion api commit is always false,
we need to ensure this is respected via the try flag like the rest of the
coercion logic.

gcc/rust/ChangeLog:

* typecheck/rust-coercion.cc (TypeCoercionRules::select): respect try flag

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