]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Put nevertype cercion into it's own function
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 21 Aug 2025 14:09:28 +0000 (16:09 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:58:43 +0000 (20:58 +0100)
commitce72dfc670dcbee593ef2a45c30940fef38e83d6
tree75259cf1a70ac6d1df9021d28f26630a7d38b26b
parentfe3527823372547d7a534f231f019e0d37e1c1c7
gccrs: Put nevertype cercion into it's own function

gcc/rust/ChangeLog:

* typecheck/rust-coercion.cc (TypeCoercionRules::do_coercion):
Move nevertype coercion from here...
(TypeCoercionRules::coerce_never): ... to here.
* typecheck/rust-coercion.h: Add function prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/typecheck/rust-coercion.cc
gcc/rust/typecheck/rust-coercion.h