]> gcc.gnu.org Git - gcc.git/commit
gccrs: format-args: Start storing string in Rust memory
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 22 Feb 2024 15:26:40 +0000 (16:26 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 11:12:16 +0000 (13:12 +0200)
commit9b540c4299a6567d0e7642a4664dc76291dc8cbc
tree2a18a4b22f8c5901961ad92b5c60c0a9740b96f8
parent5ed71ad2a2f394afc9d66aee0c30476879292cab
gccrs: format-args: Start storing string in Rust memory

gcc/rust/ChangeLog:

* ast/rust-fmt.cc (ffi::RustHamster::to_string): New.
(Pieces::collect): Adapt to use new handle API.
(Pieces::~Pieces): Likewise.
(Pieces::Pieces): Likewise.
(Pieces::operator=): Likewise.
* ast/rust-fmt.h (struct RustString): Add members.
(struct FormatArgsHandle): New.
(clone_pieces): Adapt for new FFI API.
(destroy_pieces): Likewise.
(struct Pieces): Store new FormatArgsHandle type.
* expand/rust-expand-format-args.cc (expand_format_args): Use proper
namespace.
* resolve/rust-ast-resolve-base.cc (ResolverBase::visit): FormatArgs
nodes are already resolved, so do nothing.

libgrust/ChangeLog:

* libformat_parser/src/lib.rs: Use new Handle struct and expose it.
gcc/rust/ast/rust-fmt.cc
gcc/rust/ast/rust-fmt.h
gcc/rust/expand/rust-expand-format-args.cc
gcc/rust/resolve/rust-ast-resolve-base.cc
libgrust/libformat_parser/src/lib.rs
This page took 0.070501 seconds and 5 git commands to generate.