]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: FnParam cloning now keeps projections
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 19 Nov 2024 14:37:56 +0000 (15:37 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:32:57 +0000 (12:32 +0100)
commitba71c9d3b565fd4a493e1ddcf7a9584e1b33c0c6
treef081270f27e969185de8412a23a544d09bfb4043
parenta99d29095028be7a68c876d6124b8e845fc80fef
gccrs: FnParam cloning now keeps projections

FnParam type where monomorphized during cloning.

gcc/rust/ChangeLog:

* typecheck/rust-tyty.h: Reverse monomorphization during cloning and
make a new function to explicitly monomorphize.
* typecheck/rust-tyty.cc: Use monomorphization when required.

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