diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-29 14:53:05 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 13:12:16 +0200 |
commit | 444b41bf06c36af3f8659a5057dae454aac90156 (patch) | |
tree | 470a7b543a9d2d20a901d37f1e8b7d39caa10050 /gcc/rust/hir | |
parent | 9b540c4299a6567d0e7642a4664dc76291dc8cbc (diff) | |
download | gcc-444b41bf06c36af3f8659a5057dae454aac90156.zip gcc-444b41bf06c36af3f8659a5057dae454aac90156.tar.gz gcc-444b41bf06c36af3f8659a5057dae454aac90156.tar.bz2 |
gccrs: format-args: Add basic expansion of unnamed Display::fmt arguments.
gcc/rust/ChangeLog:
* ast/rust-ast-builder.h: Rename AST::AstBuilder -> AST::Builder
* ast/rust-ast-builder.cc: Likewise.
* expand/rust-derive.cc: Use new AST::Builder name.
* expand/rust-derive.h: Likewise.
* ast/rust-builtin-ast-nodes.h: Add required getters.
* expand/rust-expand-format-args.cc (format_arg): New.
(get_trait_name): New.
(expand_format_args): Properly expand basic format_args!() invocations.
* expand/rust-expand-format-args.h (expand_format_args): Fix signature.
* expand/rust-macro-builtins.cc (MacroBuiltin::format_args_handler):
Call into expand_format_args().
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions