]> gcc.gnu.org Git - gcc.git/commit
gccrs: v0-mangle closures
authorRaiki Tamura <tamaron1203@gmail.com>
Thu, 12 Oct 2023 08:24:46 +0000 (17:24 +0900)
committerCohenArthur <arthur.cohen@embecosm.com>
Wed, 15 Nov 2023 09:44:25 +0000 (09:44 +0000)
commit31c563737814d98c8c4518e0d93aa65eb44a964c
treef91d8853d4ddbe7e34bea8f1544a4c2b7702c824
parentfacd325f9efdfec09773bb878bec5c673952a479
gccrs: v0-mangle closures

gcc/rust/ChangeLog:

* backend/rust-compile-expr.cc (CompileExpr::generate_closure_function):
Fix reference to node.
* backend/rust-mangle.cc (struct V0Path): Modified to accept closures.
(v0_crate_path): Modified to accept closures.
(v0_closure): New function to mangle closures.
(v0_path): Modified to accept closures
* util/rust-mapping-common.h (UNKNOWN_NODEID): Change to UINT32_MAX.
(UNKNOWN_HIRID): Change to UINT32_MAX.

gcc/testsuite/ChangeLog:

* rust/compile/v0-mangle2.rs: New test.

Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
gcc/rust/backend/rust-compile-expr.cc
gcc/rust/backend/rust-mangle.cc
gcc/rust/util/rust-mapping-common.h
gcc/testsuite/rust/compile/v0-mangle2.rs [new file with mode: 0644]
This page took 0.058687 seconds and 5 git commands to generate.