aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-03-07 14:57:54 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 13:12:16 +0200
commit302ad5de0792978683f3599e13fdf0a75dacc051 (patch)
treeccdd7e587965bd8d56f5ff44c53ca4c11afb14af /gcc/rust/rust-session-manager.cc
parentd0e8bf92395be8c4b5f059f93006655b63e1367e (diff)
downloadgcc-302ad5de0792978683f3599e13fdf0a75dacc051.zip
gcc-302ad5de0792978683f3599e13fdf0a75dacc051.tar.gz
gcc-302ad5de0792978683f3599e13fdf0a75dacc051.tar.bz2
gccrs: format-args: Only pass the format string to the parser.
This fixes an issue we had where the generated code ended with more static pieces than its rustc counterpart. gcc/rust/ChangeLog: * expand/rust-macro-builtins.cc (struct FormatArgsInput): Store the format_str as a string instead of an AST::Expr. (format_args_parse_arguments): Transform format_expr into a format string properly - add note for handling eager macro invocations later on. (MacroBuiltin::format_args_handler): Parse the correct input, append newline to format_str if necessary.
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
0 files changed, 0 insertions, 0 deletions