diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-16 18:27:22 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-03-01 15:42:36 +0000 |
commit | afed72d7137afe4ab4c7db44262379ba6dda4eb9 (patch) | |
tree | 24d8b8c13d34bd86db7094b134e19e255def747e /gcc/rust/resolve | |
parent | 38e3cffdbdee48cc4793948f1551b075672f6fdd (diff) | |
download | gcc-afed72d7137afe4ab4c7db44262379ba6dda4eb9.zip gcc-afed72d7137afe4ab4c7db44262379ba6dda4eb9.tar.gz gcc-afed72d7137afe4ab4c7db44262379ba6dda4eb9.tar.bz2 |
format-args: Fix Rust interface and add input parsing.
gcc/rust/ChangeLog:
* Make-lang.in: Do not build Rust library in release mode.
* 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/resolve')
0 files changed, 0 insertions, 0 deletions