diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-30 01:48:13 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-02-26 17:32:38 +0000 |
commit | ad905fe5164bd4a7b41172708256fe04d0a80c8d (patch) | |
tree | d165d7e08b9708f1c975415e692c243855c4d6be /gcc/rust/hir | |
parent | b49f87f6931fa1f42b9a49e7dccd38b0afe3442d (diff) | |
download | gcc-ad905fe5164bd4a7b41172708256fe04d0a80c8d.zip gcc-ad905fe5164bd4a7b41172708256fe04d0a80c8d.tar.gz gcc-ad905fe5164bd4a7b41172708256fe04d0a80c8d.tar.bz2 |
libformat_parser: Send boxed values across FFI properly
gcc/rust/ChangeLog:
* ast/rust-fmt.cc (Pieces::~Pieces): Call libformat_parser's release
function in destructor.
* ast/rust-fmt.h (struct PieceSlice): Add capacity.
(destroy_pieces): New.
(struct Pieces): Add destructor.
libgrust/ChangeLog:
* libformat_parser/src/lib.rs: Leak Boxes properly for C++ to
see them, add memory release function.
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions