diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-16 18:27:22 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 13:11:40 +0200 |
commit | 68cb878c1dab0636da4f686d6c8f5d4fa3b66e3b (patch) | |
tree | 789b4ca35931e44ef51751b66f4b4919be338ce9 /gcc/rust/util | |
parent | d9fa4153c83d3a4e4099530a450c7e511b1b24ec (diff) | |
download | gcc-68cb878c1dab0636da4f686d6c8f5d4fa3b66e3b.zip gcc-68cb878c1dab0636da4f686d6c8f5d4fa3b66e3b.tar.gz gcc-68cb878c1dab0636da4f686d6c8f5d4fa3b66e3b.tar.bz2 |
gccrs: format-args: Fix Rust interface and add input parsing.
gcc/rust/ChangeLog:
* ast/rust-ast.cc: Make FormatArgs inherit from AST::Expr
* ast/rust-builtin-ast-nodes.h: Improve FormatArg* nodes and helpers.
* ast/rust-fmt.cc (Pieces::collect): Fix interface to match FFI function.
* ast/rust-fmt.h (collect_pieces): Likewise.
(struct Pieces): Add append_newline parameter.
* expand/rust-macro-builtins.cc: Add proper parsing of format_args
input.
* hir/rust-ast-lower-base.cc: Include diagnostics header.
libgrust/ChangeLog:
* libformat_parser/src/lib.rs: Switch interface to use more parser
parameters.
* libformat_parser/src/bin.rs: Use new interface.
Diffstat (limited to 'gcc/rust/util')
0 files changed, 0 insertions, 0 deletions