-
- Downloads
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>
Showing
- gcc/rust/backend/rust-compile-expr.cc 5 additions, 1 deletiongcc/rust/backend/rust-compile-expr.cc
- gcc/rust/backend/rust-mangle.cc 26 additions, 7 deletionsgcc/rust/backend/rust-mangle.cc
- gcc/rust/util/rust-mapping-common.h 2 additions, 2 deletionsgcc/rust/util/rust-mapping-common.h
- gcc/testsuite/rust/compile/v0-mangle2.rs 17 additions, 0 deletionsgcc/testsuite/rust/compile/v0-mangle2.rs
Loading
Please register or sign in to comment