-
- Downloads
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.
Showing
- gcc/rust/ast/rust-fmt.cc 18 additions, 14 deletionsgcc/rust/ast/rust-fmt.cc
- gcc/rust/ast/rust-fmt.h 32 additions, 14 deletionsgcc/rust/ast/rust-fmt.h
- gcc/rust/expand/rust-expand-format-args.cc 2 additions, 2 deletionsgcc/rust/expand/rust-expand-format-args.cc
- gcc/rust/resolve/rust-ast-resolve-base.cc 1 addition, 4 deletionsgcc/rust/resolve/rust-ast-resolve-base.cc
- libgrust/libformat_parser/src/lib.rs 80 additions, 25 deletionslibgrust/libformat_parser/src/lib.rs
Loading
Please register or sign in to comment