]> 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)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:14 +0000 (19:13 +0100)
commit4bd9f1159ba054c9cacfd9a5cd0186c1791987d1
treebdf8eb915472b016d47cb70168afc28489026483
parent4011a8b5a16abca411b74aa0fd131c3dc0b3771a
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.059402 seconds and 5 git commands to generate.